Tailwind color generator

Enter one color and get a full 50-950 scale for Tailwind, with your exact color kept in it and a readability check on every step.

How to use it

  1. Enter your color as hex, rgb(), hsl() or a color name, and give it a name such as brand.
  2. See which step your color lands on, and which text color passes WCAG AA on each step.
  3. Click any step to copy its hex.
  4. Pick Tailwind 4, Tailwind 3 or CSS variables, then copy the code. The page address updates, so you can share the scale.

How it works

The scale is built in OKLCH, a color space where equal steps in lightness look equal to the eye. Each step has its own lightness, from very light at 50 to very dark at 950, and keeps your color's hue.

Pale and very dark steps carry less chroma, the way real tints and shades do, so the scale doesn't look neon at the ends. Your exact color replaces the step closest to it in lightness.

Questions

How do I use the scale in Tailwind 4?

Paste the @theme block into your main CSS file. Classes like bg-brand-500 and text-brand-900 then work right away.

Why isn't my color at 500?

Your color goes to the step that matches its lightness, so a light color might land at 300 and a dark one at 700. That keeps the whole scale evenly spaced.

Is this the same as Tailwind's built-in palette?

It uses the same 50-950 naming and an OKLCH approach, but the scale is generated from your color with our own lightness curve, not copied from Tailwind's colors.