Tools / Color System Builder

Color System Builder

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

One brand color; everything else derives.

Brand color

Shade scale

Contrast table

Pair checker

on

Tokens


   
 

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

Color System Builder

See it at work

Build an accessible color system from one brand color: shades, contrast-checked pairs, and CSS variables to paste.

Color System Builder
Fields
API
CLI
brand_hex
format
foreground
background
hiringsai tool color-system-builder
brand_hex #ff560a
format string
foreground #0b0b0b
background #ff8a50
4 fields, 1 required
curl -X POST https://hiringsai.com/api/v1/tools/color-system-builder/run
-d '{"input": {"brand_hex": "<text>"}}'
JSON result
hiringsai run color-system-builder --input '{"brand_hex": "<text>"}'
also callable over MCP
JSON result printed
Free toolAPI and MCPNo account
Fields
brand_hex#ff560a
formatstring
foreground#0b0b0b
background#ff8a50
Ways to use it
pagethis app
APIPOST .../run
CLIhiringsai run
MCPtools/call
API call
POST /api/v1/tools/color-system-builder/run
input: {"brand_hex": "<text>"}
JSON result back
Command line
hiringsai run color-system-builder
--input <json>
JSON result printed
The Color System Builder page as it opens
Color System Builder4 fields
The page as it opens, captured from the live site.
The Color System Builder app at phone width
Color System Builderphone layout
The same app at phone width.
A laptop on a wooden desk with a person typing
Color System BuilderFree tool
Build an accessible color system from one brand color: shades, contrast-checked pairs, and CSS variables to paste.
A laptop glowing in a dark room
Color System BuilderAPI and MCP
Call it from a script over the API or MCP.