Animated Gradient Generator
Build a moving gradient background with the keyframes included.
Turn one colour into a full 50–950 Tailwind scale.
The Tailwind config appears here
The Tailwind Palette Generator turns one brand colour into a complete 50–950 scale in OKLCH, matched to the lightness curve of Tailwind’s own palettes so a custom brand-600 carries the same weight as the stock blue-600.
Tailwind expects a colour to arrive as a scale of eleven shades, from 50 to 950. Adding a brand colour to a project means producing all eleven, and the ones people write by hand rarely match the built-in palettes in weight.
This generates the whole scale from one colour. Your colour is anchored at the shade it is closest to — measured, not assumed — and the rest are built around it by matching the lightness curve of Tailwind's own palettes in OKLCH, which is the space Tailwind v4 moved to for exactly this reason: it is what makes a custom red-600 carry the same visual weight as the stock blue-600.
Output comes in both shapes. A v4 @theme block with --color-name-500 custom properties, which is how the current version defines colours, and a v3 JavaScript config object for projects that have not migrated. Every shade is checked for contrast against white and black, so you can see immediately which ones can take text — usually 600 and up for white, 400 and below for black.
Your colour is placed at the shade its lightness actually matches, measured rather than assumed to be 500.
The space Tailwind v4 uses, which is what makes the scale sit level with the built-in palettes.
A v4 @theme block of custom properties, and a v3 JavaScript object for projects yet to migrate.
Which shades take white text and which take black, marked on the scale itself.
Paste the @theme block and bg-brand-500, text-brand-700 and the rest exist, with no config file.
One colour. The generator works out which shade it should be.
Whatever you want the utilities to be called — bg-brand-500 and the rest.
Which shades carry white text and which carry black.
A v4 @theme block or a v3 config object, ready to paste.
Whichever its lightness is closest to. A vivid mid-tone usually lands on 500 or 600; a pale colour may land on 200. The tool tells you, and you can force a different anchor if you want.
Because Tailwind v4 does. Its palette is defined in OKLCH so that the same shade number means the same perceived lightness at every hue. Generating in HSL instead produces a scale that does not sit level with the built-in colours.
Paste the @theme block into your CSS. The custom properties immediately become utilities — bg-brand-500, text-brand-700, border-brand-200 — with no config file involved.
You will use perhaps six. But generating all eleven costs nothing, and having 50 and 950 available when a design needs a very pale background or a near-black border is worth more than the tidiness of omitting them.
What people who use the Tailwind Palette Generator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Tailwind Palette Generator. It takes half a minute and no account.
Write the first reviewBuild a moving gradient background with the keyframes included.
Work out the solid colour a translucent layer really produces.
Pick colours in OKLCH, the space modern CSS is built on.
Check any text and background pair against WCAG AA and AAA.
Convert CIELAB to HEX and RGB, and measure ΔE between colours.
Build conic gradients — pie charts, colour wheels and sweeps.
Convert HEX colour codes to RGB and HSL, and back again.
Blend two colours and see every step between them.