Color Shades & Tints Generator

Turn one color into a full 50–950 tint and shade scale, ready for Tailwind.

Runs in your browserUpdated Built and maintained by Leon and Henrik

Drop in one color and get a full 50–950 scale of tints and shades with even, perceptual lightness — built in OKLCH and ready to paste into Tailwind. Free. No sign-up. Runs in your browser, nothing is uploaded.

Color Shades & Tints Generator

An 11-step 50–950 scale with perceptually even lightness, computed in OKLCH so the steps feel uniform. Click any step to copy its hex.

EXPORT
Runs in your browser
Nothing is uploaded

Pick or type one color, give the scale a name such as brand, and you get eleven steps from 50 (palest tint) to 950 (deepest shade), each with its hex code. Click a step to copy it, or export the whole scale as a Tailwind config, CSS custom properties or JSON tokens. Your own color is part of the scale, unchanged, at the step that matches its lightness.

What a scale looks like: three examples

These are the actual outputs for three common base colors (base color in bold):

StepBlue #3B82F6Yellow #FACC15Navy #1E3A8A
50#DCF7FF#FFF5C8#E6F6FF
100#C1ECFF#FFE99F#D2EAFF
200#9FDAFF#FACC15#B7D8FF
300#7BBFFF#E5BC1F#99BEFF
400#549CFF#C69900#769CF5
500#3B82F6#A67A00#597CD3
600#1A60CD#895F00#4162B3
700#0548AB#6F4900#2F4B94
800#00388F#5B3900#1E3A8A
900#002973#472A00#182C62
950#001C59#351E00#0F1F4B

The yellow example shows why a fixed "base = 500" rule doesn't work: a bright yellow is perceptually as light as a 200 tint. Forcing it to 500 would squeeze ten steps of shade into a range that turns brown almost immediately. Here, the darker steps of yellow become ochre and brown, which is what dark yellow really looks like.

Why HSL shade scales look lumpy

The obvious way to make shades is to take a color in HSL and step the lightness up and down. The numbers end up evenly spaced, but the result doesn't look it, because HSL lightness is just the average of the brightest and darkest RGB channel. It ignores how differently the eye responds to each hue:

ColorHSL lightnessOKLCH lightness
Pure yellow #FFFF0050%0.97
Pure green #00FF0050%0.87
Pure red #FF000050%0.63
Pure blue #0000FF50%0.45

Same HSL lightness, wildly different perceived brightness. An HSL ramp therefore gives yellows washed-out tints and blues that plunge to black, with steps like 100 and 200 looking nearly identical and 600 to 700 feeling like a cliff.

How the generator builds the steps

OKLCH is the cylindrical form of OKLab, a perceptual color space published by Björn Ottosson in 2020. L is perceived lightness (0 to 1), C is chroma and H is hue. The generator:

  1. converts your color to OKLCH (sRGB → linear sRGB → OKLab → OKLCH);
  2. assigns each step a fixed target lightness, from 0.971 for step 50 down to 0.255 for step 950;
  3. keeps your hue for every step, so the ramp stays in one color family;
  4. scales your color's chroma per step, tapering it at both ends so very light tints and very dark shades stay inside sRGB;
  5. converts back to hex, and puts your original color at the step whose target lightness is closest to its own.

Because the lightness targets are the same for every color, brand-100 and gray-100 sit at the same perceived brightness. That's what lets you swap a scale behind a component without re-checking every screen.

Which step to use for what

The common design-system conventions:

  • 50–100: page tints, hover backgrounds, subtle panels.
  • 200–300: borders, dividers, disabled states.
  • 400–600: buttons, links, primary surfaces; 500 or 600 is usually the "brand" button.
  • 700–950: text on light backgrounds, deep accents, dark-mode surfaces.

Contrast still has to be checked per pair. In the examples above, white text passes WCAG AA on blue 600 (5.84:1) and yellow 600 (5.67:1), but not on blue 500 (3.68:1), even though 500 is the brand color. Test your actual text and background pairs with the Color Contrast Checker.

Export formats

  • Tailwind config: a tailwind.config.js block under theme.extend.colors.<name>, for Tailwind v3.
  • CSS variables: --brand-50 to --brand-950 in :root, usable in any stack with var(--brand-500), and the starting point for a Tailwind v4 @theme block.
  • JSON tokens: an object like { "brand": { "50": "#…", … } } to feed a design-token pipeline such as Style Dictionary.

For a whole theme with primary, accent and neutral scales at once, the Tailwind Theme Generator builds several scales together. For several distinct colors that work as a set, start with the Color Palette Generator, and if your color is in RGB or HSL, convert it first with the Color Converter.

Frequently asked questions

Related tools

All Color tools →