Skip to content
en

Color shade scale generator

11 shades from your color, 50 to 950, like Tailwind. Each with its HEX and WCAG contrast for white and black text. Ready CSS variables.

Input

#1f6feb

Result

Fill in the fields – the result will appear here.

Report a problem
This will be sent with your message:
Advertisement

What a shade scale is

Eleven steps from 50 to 950

A scale is one color at eleven levels of lightness. Step 50 is the lightest, 950 the darkest. Tailwind and most design systems use the same numbers, so you can paste the scale into a config without renaming anything.

Hue and saturation are the same on every step. Only lightness changes. That's why the scale reads as one color, not eleven different ones.

Where your color sits

Your color goes into the scale exactly, with no recalculation. Which step it takes is set by the second field:

- Automatic – the page puts the color on the step closest by lightness. Blue #1f6feb becomes step 500. - A specific step – the color is pinned where you said. The other steps stretch out from it: lighter ones to near white, darker ones to near black.

If you pin white to step 950, the lighter steps have nowhere to go. The page then doesn't print ten identical whites – it says plainly there is no room and suggests another step.

Contrast under each step

Under each shade is the WCAG 2.x contrast for black and white text. The better option comes first.

- AA – from 4.5:1, normal text is readable. - large only – from 3:1, fine for headings from 18 pt or 14 pt bold. - – – below 3:1, text in that color is not readable there.

The ratio is rounded down to one decimal. A pair at 4.46:1 shows 4.4, not 4.5, because 4.5 would claim a threshold the pair does not reach.

CSS variables

The main result is eleven lines from --color-50: …; to --color-950: …;. You can paste them into :root as they are. Replace the name color with your own.

Common questions about shade scales

How is this different from a palette generator?

A palette generator turns the hue around the color wheel and gives neighbouring or opposite colors. This page leaves the hue alone. It gives lighter and darker versions of one color and checks which text is readable on them.

Why two ratios next to each step, not one?

The better of the two – black or white text – always gives at least 4.5:1. A single ratio would show AA on every step and tell you nothing. The second one answers whether you can put the other text color on that background too.

Does the scale match Tailwind's colors?

The step numbers are the same, the shades are not. Tailwind picked its colors by hand. Here every step is calculated from your color by a formula, so the same color always gives the same scale.

Why does grey give grey steps?

Grey has no hue or saturation, so only lightness changes. You get a scale from near white to near black – exactly as it should be.

Does the page store my colors?

No. The color and step go in a request to the server, the scale is calculated and saved nowhere. The same color and step always give the same scale.

Advertisement

Report a problem

This will be sent with your message: