Tailwind shade generator
This tool turns a single base colour into the complete Tailwind-style 50 → 950 ramp and emits a paste-ready theme.extend.colors block. It is for developers adding a custom brand colour to a Tailwind project who want a balanced, on-brand set of shades without picking eleven hexes by hand.
How it works
The generator converts your base colour to HSL, then builds each of the eleven standard stops by holding the hue and saturation constant and replacing the lightness with a fixed target value per stop. The targets descend from light to dark — roughly 97% at the 50 stop down to 18% at 950, with 500 around 56% — so every shade stays in the same colour family while spanning tints and shades. Each resulting HSL colour is converted back to hex and written under the name you choose.
Example
Naming the colour brand produces a block like this (values depend on your base colour):
theme: {
extend: {
colors: {
brand: {
50: "#eff6ff",
500: "#3b82f6",
950: "#172554",
// …200, 300, 400, 600, 700, 800, 900
},
},
},
}
Paste it into tailwind.config, then use classes such as bg-brand-500 and text-brand-700.
| Stop | Target lightness |
|---|---|
| 50 | ~97% |
| 100 | ~94% |
| 500 | ~56% |
| 700 | ~40% |
| 950 | ~18% |
Everything runs in your browser — nothing is uploaded.