Tailwind Color Palette Generator

Give it one brand colour and get a full Tailwind shade scale from 50 to 950 — evenly spaced to the eye, with your colour placed exactly at its step. Check each step's contrast, then copy a Tailwind v4 @theme block or a v3 config snippet straight into your project.

Typical lightness by step (OKLCH L)

StepL
500.975
1000.94
2000.885
3000.81
4000.71
5000.62
6000.54
7000.47
8000.40
9000.35
9500.26

When to use it

  1. Add a brand colour to a Tailwind project.
  2. Create primary, accent and neutral scales for a design system.
  3. Replace muddy hand-made shade ramps.
  4. Generate CSS variables for a non-Tailwind project.

How to Use

  1. Pick your base colour and name it.
  2. Keep the automatic step or choose one.
  3. Copy the @theme or config snippet.

Features

  1. 11 steps, 50–950
  2. Perceptually even OKLCH scale
  3. Exact base colour preserved
  4. WCAG contrast per step
  5. Tailwind v4 and v3 output
  6. CSS, SCSS and JSON

FAQs

Which step does my colour go at?

The step with the closest typical lightness — often 500 or 600 — or any step you choose.

Does it work with Tailwind v4?

Yes — copy the @theme block. A v3 config object is also available.

Why OKLCH?

Equal steps in OKLCH lightness look equal to the eye, unlike HSL.

Are these Tailwind's own colours?

No, they're generated from your colour using Tailwind's lightness curve.

What does the contrast number mean?

Contrast with white text; 4.5:1 or more passes WCAG AA.

Technical Details

Tailwind v4 defines its palette in OKLCH, and this tool builds scales the same way. The base colour is converted to OKLCH and placed at the step whose usual lightness is closest, or at a step you choose. The other steps follow the typical lightness curve of Tailwind's palette, from about L 0.975 at 50 to about L 0.26 at 950. That curve is shifted to pass exactly through your colour, and the shift fades out toward 50 and 950 so the ends stay usable. Chroma follows Tailwind's profile, lower at the extremes and highest around 500, and is reduced where needed to stay inside sRGB. Hue is held constant. Each step shows its HEX code and contrast with white text. Exports are a Tailwind v4 @theme block (--color-name-500), a v3 theme.extend.colors object, CSS variables, an SCSS map or JSON.

Color Tools

Color Tools

  • Color Blindness Simulator
  • Color Converter
  • Contrast Checker
  • Color Mixer
  • Color Palette Generator
  • Color Shades & Tints Generator