Skip to content

Tailwind Shade Generator

Generate premium, LCH-interpolated 50-900 color scales for UI designing. Preview accessible overlay readability, audit relative contrast grades in real-time, and copy ready-to-use configs.

Base Color

Pick a starting hex color to build shades for.

Juicy Shift: Adjusts hue and saturation dynamically to keep lighter shades solar and darker shades rich instead of muddy.
Pure Linear: Straight mathematical mix from light to dark.

Copy individual hexes on the right or export the complete list below for copy-pasting directly into Figma tokens or Tailwind configuration variables.

Copied hex code!

How the 50–900 scale is built, and how to read it

What it does

Turns one brand colour into the eleven-step 50–900 scale that Tailwind's colour system expects, interpolating in LCH instead of RGB, and shows the WCAG contrast of every step so you can see where text stops being legible on it.

When you would use it

You have a single brand hex and need the whole scale a real interface uses — fills, hovers, borders, surfaces, muted text and headings. It is also the quickest way to answer “is step 600 safe for white button text?” without checking pairs by hand.

How to use it

  1. Paste a hex or use the colour picker. The colour you enter becomes step 500.
  2. Choose an interpolation mode: hue-shifted drifts the hue the way perception expects as the scale lightens and darkens; pure linear mixes straight toward white and black and flattens saturated colours.
  3. Read the contrast column. Each step is measured against white and against the near-black surface shown in the panel.
  4. Copy the export you need: Tailwind config, CSS custom properties, Sass variables or JSON.

Worked example — why a mid-blue cannot carry white text

Take sky-500, #38BDF8. Against white it measures 2.14:1, so white body text on that fill fails WCAG AA (4.5:1) and fails even the large-text allowance (3:1). The same colour against #0F172A measures 8.33:1 and passes AAA. The colour did not change — only what sits behind it did. That is the distinction the contrast column is there to make visible before you ship a button.

How the calculation works

Each step is a mix between your base colour and a tint (for the lighter half) or a shade (for the darker half). The mix runs in LCH: lightness is interpolated, while hue and chroma are carried through, which avoids the grey, desaturated midpoint that RGB mixing produces on saturated colours. Contrast is the WCAG 2.1 ratio: relative luminance is computed from linearised sRGB channels, then (lighter + 0.05) / (darker + 0.05).

Limitations

  • One base colour per run. A scale is derived from a single hue; it is not a multi-colour palette tool.
  • LCH interpolation preserves hue drift but cannot rescue a base colour that is already too light or too dark to anchor step 500.
  • Contrast is measured against pure white and the panel near-black, not against your own surface colours. Check those pairs in the contrast checker.
  • The exported Tailwind config uses the standard 50–900 keys, so importing it replaces any scale already defined under the same colour name.