A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the Color System Builder page

Tools / Build suite

Color System Builder

Build an accessible color system from one brand color: shades, contrast-checked pairs, and CSS, Tailwind and SCSS exports.

Drop in one brand color and leave with a whole system: a tuned shade scale, text-on-color pairs that pass WCAG, and design tokens as CSS variables.

Open the tool
Screenshot of the Color System Builder tool

What it does

One color in, a system out.

Nine-step shade scale

From near-black to near-white through your hue, generated in OKLCH: fixed perceptual lightness steps, your hue, chroma reduced to stay inside sRGB. The step nearest your colour's lightness is your exact colour.

Contrast that is checked, not hoped

Every text-on-background pair shows its WCAG ratio and pass level (AA, AAA) before you ship it.

Tokens as CSS variables

Copy :root variables, Tailwind config, or SCSS map - named and ordered.

Semantic mapping

Brand, surface, text, success, warning and danger roles assigned from your pick. Success, warning and danger use fixed hues. Each role shows its best text colour and WCAG ratio.

Shorthand hex accepted

Three or six digits, with or without the hash. Anything else shows a message and generates nothing.

Your colour is kept exactly

The scale step closest in lightness to your colour is replaced by your exact hex, so the brand value is never rounded.

Chroma tapers away from your step

Steps far from your lightness get less colour, down to 45 percent of the original, so pale and dark ends stay clean.

Gamut handled by search

If a step falls outside sRGB, chroma is lowered by a 24-step search until it fits, keeping hue and lightness.

Best ink chosen

Each swatch and role shows white or near-black text, whichever has the higher contrast ratio, with the ratio itself.

Four-level verdict

Ratios are labelled AAA at 7, AA at 4.5, large text only at 3, and fails below that.

How it works

Pick, check, paste.

Step 1

Enter your brand hex or use the picker.

Step 2

Review the scale and the contrast table.

Step 3

Copy the token format your stack uses.

FAQ

What color space?

The scale is generated in OKLCH (Oklab conversion, gamut-clipped by lowering chroma); contrast uses the WCAG 2.x relative-luminance formula.

Does it check my exact pair?

Yes, the pair checker accepts any two hex values and reports the ratio and level.

Dark mode?

The semantic mapping emits both light and dark surface sets.

Why is step 600 my colour in the example?

The nine steps sit at fixed lightness values, and your colour's lightness was closest to the sixth, so that step holds your exact hex.

Are success, warning and danger tied to my brand?

No. They use fixed hues of 142, 38 and 2 degrees, so they stay recognisable whatever brand colour you enter.

What does the pair checker accept?

Any two hex values. It reports the contrast ratio and level for that pair.

Is my colour stored?

No. Everything is computed in the page from the hex you type.

Open Color System Builder

Worked example

Real output, from the tool itself.

This is what Color System Builder returned for its built-in example input, captured from the tool - not a mockup.

You enter

Input

#ff560a

Input

#ff560a

Input

#0b0b0b

Input

#ff8a50

The tool returns

:root{
  --brand-100: #2d0700; /* oklch(0.199 0.066 37.7) */
  --brand-200: #541500; /* oklch(0.300 0.098 38.1) */
  --brand-300: #7e2500; /* oklch(0.400 0.129 38.6) */
  --brand-400: #ab3500; /* oklch(0.500 0.162 38.4) */
  --brand-500: #da4600; /* oklch(0.599 0.194 38.4) */
  --brand-600: #ff560a; /* oklch(0.677 0.216 38.5) */
  --brand-700: #ffa385; /* oklch(0.801 0.118 38.8) */
  --brand-800: #ffd3c4; /* oklch(0.901 0.054 39.7) */
  --brand-900: #ffeee8; /* oklch(0.961 0.020 40.5) */
  --color-brand: #ff560a; /* oklch(0.677 0.216 38.5) */
  --color-surface: #2d0700; /* oklch(0.199 0.066 37.7) */
  --color-text: #ffeee8; /* oklch(0.961 0.020 40.5) */
  --color-success: #279b51; /* oklch(0.609 0.149 150.7) */
  --color-warning: #dc8f09; /* oklch(0.712 0.152 71.0) */
  --color-danger: #d32822; /* oklch(0.562 0.206 28.3) */
Try it with your own input

More in the Build suite

Font Pairing LabWebhook TesterPricing Page BuilderLanding Page MakerStatus Page Starter
A laptop, headphones, a camera, a phone and a plant on a white desk, seen from above, banner image on the Color System Builder page

Try it now.

Color System Builder runs in your browser. No account needed.

Input To Output

One color in, a whole system out

One brand hexcolorNine shadesContrast tableCSS, Tailwindor SCSS tokensColor SystemBuilderInOut
InOne brand hex colorColor SystemBuilderNine shadesContrast tableCSS, Tailwind or SCSS tokensOut
A single brand color becomes a scale, a table and code.

Spec Sheet

Nine lightness steps

Stepsnine, from 100 to 900Lightness0.20 up to 0.96Your colorreplaces its nearest stepKeptexact, untouched
Stepsnine, from 100 to 900Lightness0.20 up to 0.96Your colorreplaces its nearest stepKeptexact, untouched
One color becomes a scale.

Pipeline

Picking a color

Move the pickerHex box updatesOr type a hexPicker followswhen six digitsEverythingrebuilds
Move the pickerHex box updatesOr type a hexPicker follows when six digitsEverything rebuilds
The color picker and the hex box stay in step.

Pipeline

Building a shade

Convert the brandcolorKeep its hueSet the targetlightnessScale the strengthto suitPull it back intodisplayable range
Convert the brand colorKeep its hueSet the target lightnessScale the strength to suitPull it back into displayablerange
Shades are made in a perceptual color space.

Spec Sheet

When a shade goes out of range

Chromareduced until it fitsLightness and huekept as setSearch24 halving steps
Chromareduced until it fitsLightness and huekept as setSearch24 halving steps
Very strong tints cannot display.

Pipeline

Checking text on a swatch

Measure white onthe shadeMeasure near blackon itPick the higherratioShow white or darkShow the ratio
Measure white on the shadeMeasure near black on itPick the higher ratioShow white or darkShow the ratio
Each shade gets the better of two text colors.

Bar Compare

Contrast thresholds

Large text3 :1AA4.5 :1AAA7 :1
Large text3 :1AA4.5 :1AAA7 :1
The ratio needed for each level.

Spec Sheet

Six roles

Brandyour colorSurfacethe lightest stepTextthe darkest stepStatusfixed green, amber, red
Brandyour colorSurfacethe lightest stepTextthe darkest stepStatusfixed green, amber, red
A system, not just shades.

Before After

Where roles come from

RoleSourcesurfacetextbrandsuccess, warning, dangerShade 100Shade 900Your hexFixed green, amber, red hues
Role to SourcesurfaceShade 100textShade 900brandYour hexsuccess, warning, dangerFixed green, amber, red hues
Some roles are picked from the scale, others are fixed hues.

Spec Sheet

The contrast table

Rows6 roles and 9 stepsColumnsrole, colour, text, ratioRatiotwo decimals, level word
Rows6 roles and 9 stepsColumnsrole, colour, text, ratioRatiotwo decimals, level word
Every combination measured.

Input To Output

The pair checker

Text colorBackgroundcolorRatio like7.2:1A level wordPair checkerInOut
InText colorBackground colorPair checkerRatio like 7.2:1A level wordOut
Test any two colors against each other.

Pipeline

Checking a pair

Read the two hexvaluesBoth must be 3 or6 digitsCompute relativebrightnessDivide the lighterby the darkerShow ratio andlevel
Read the two hex valuesBoth must be 3 or 6 digitsCompute relative brightnessDivide the lighter by the darkerShow ratio and level
Both boxes are validated first.

Before After

Pair levels

RatioLevelRatio 8.1Ratio 5.0Ratio 3.4Ratio 2.0AAAAAAA large text onlyfails
Ratio to LevelRatio 8.1AAARatio 5.0AARatio 3.4AA large text onlyRatio 2.0fails
The wording uses the same thresholds.

Spec Sheet

Three token formats

CSScustom properties, oklchnoteTailwindcolors objectSCSSdollar variablesTokens9 brand and 6 role
CSScustom properties, oklch noteTailwindcolors objectSCSSdollar variablesTokens9 brand and 6 role
Pick your stack.

Before After

One token in each format

FormatLineCSS variableTailwind colorSCSS variable--brand-500: #hex;"brand-500": "#hex"$brand-500: #hex;
Format to LineCSS variable--brand-500: #hex;Tailwind color"brand-500": "#hex"SCSS variable$brand-500: #hex;
The same color written three ways.

Pipeline

Names of tokens

Shades arebrand-100 tobrand-900Roles arecolor-brand,color-surface andso onSame names inevery format
Shades are brand-100 to brand-900Roles are color-brand,color-surface and so onSame names in every format
Shades and roles are named differently.

Pipeline

Copying tokens

Choose CSS,Tailwind or SCSSRead the outputboxClick Copy tokensPaste into yourproject
Choose CSS, Tailwind or SCSSRead the output boxClick Copy tokensPaste into your project
One button copies the format you picked.

Spec Sheet

Live and local

Rebuildson every keystrokeWrong hexmessage, nothing generatedRunsentirely in your browser
Rebuildson every keystrokeWrong hexmessage, nothing generatedRunsentirely in your browser
No waiting, no upload.