Tailwind Color Generator

Your input stays in your browser and is never sent.

Build the 11-step Tailwind CSS palette (50 to 950) from one base color, and copy it as @theme (v4), tailwind.config (v3) or a plain HEX list.

  1. Enter
  2. See the result
Base color (becomes step 500)

From the base color, lighter steps (50–400) and darker steps (600–950) are built. Lightness is set in OKLCH, which is close to how people see color.

What is the Tailwind color generator?

The Tailwind color generator builds the same 11 steps Tailwind CSS uses for its colors — 50, 100, 200 … 900, 950 — from one base color. It suits you when you want to use your brand color as a Tailwind color.

Your base color becomes step 500 as it is, and the lighter and darker steps are built around it with the same hue. Copy the palette as @theme (Tailwind v4) or tailwind.config (v3).

No sign-up or login, and it's free.

How to use the Tailwind color generator

  1. Enter the base colorPick a color, or type it as HEX, rgb(), hsl() or a color name.
  2. Name the colorType a name such as brand. It is used in Tailwind class names such as bg-brand-500.
  3. Pick a format and copyChoose @theme, tailwind.config or a HEX list, then copy and paste it.

Features of SOKUFU's Tailwind color generator

All 11 steps at once
50 to 950 are built together. Press a step to copy its HEX.
Your base color stays as 500
The color you enter is used for 500 unchanged, so your brand color doesn't drift.
Lightness set in OKLCH
Lightness and vividness change step by step in OKLCH, which is close to how people see color.
v4 and v3 formats
Output as @theme (Tailwind v4) or as tailwind.config (v3).
Runs in your browser
Nothing you enter is ever sent to a server.
Works on phones
The layout adapts to your screen, so it works on phones and tablets too.

How Tailwind's color steps work

A Tailwind color has 11 steps: 50 is the lightest and 950 the darkest. 500 is the base. Smaller numbers are pale colors for backgrounds, and larger numbers are for text and dark parts.

This tool keeps the base color's hue and changes lightness and vividness step by step. The values it makes are not looked up from Tailwind's official palette.

Pale steps (50–200) are typical for backgrounds and hover states, and dark steps (600–800) for text and buttons.

Related tools to use with the Tailwind color generator

Tailwind color generator FAQ

Will the colors match Tailwind's official ones?

No. They are calculated from your base color instead of being looked up in the official palette, so even a similar blue differs a little from the official values.

What is the difference between @theme and tailwind.config?

@theme is how Tailwind v4 defines colors in CSS, as --color-name-step. tailwind.config is the JavaScript settings file used in v3.

Which characters can the color name use?

Lowercase letters, digits and hyphens. Other characters are removed, and if nothing is left the name becomes brand.

Can I use a color close to white or black?

Yes, but the steps differ less. If the base is extremely light or dark, start from a slightly more saturated color to get a wider spread.

Is the base color I enter sent to a server?

No. The 11 shades and the code are calculated in your browser. The base color and the name you give it are not sent anywhere.