Tailwind Color Palette Generator
Turn any base color into a complete Tailwind CSS color scale. You get the full set of shades from 50 to 950 with the exact config snippet ready to paste into tailwind.config.js.
The design-system counterpart is the Material Color Palette Generator, and a palette can also be derived from an existing image with the Color Palette Extractor. The contrast of any pair is confirmed by the Color Contrast Checker.
How to use the Tailwind Palette
- 1 Enter a base colour, or paste one from an existing brand guide.
- 2 The generator produces the full scale from 50 through 950, matching Tailwind's naming convention.
- 3 Check that the steps you will use for text pass contrast against the steps you will use for surfaces.
- 4 Copy the generated values as a JavaScript object to paste into your Tailwind configuration.
Where the scale steps get used
A consistent mapping from step to role is what makes a palette useful rather than merely present. Assigning each range a job up front means a designer or developer can pick a value without consulting anyone, and it keeps a large interface visually coherent as it grows.
The mapping also makes contrast failures predictable. Once you know that body text always comes from the 600–800 range and surfaces from the 50–200 range, you only need to check that pairing once per hue rather than once per component.
- 50–100 for page and card backgrounds.
- 200–300 for borders, dividers and disabled states.
- 400–500 for placeholder text and icons.
- 600–700 for body text and primary buttons.
- 800–950 for headings and dark-mode surfaces.
Frequently asked questions
Why does Tailwind use numeric steps rather than names like "light" and "dark"?
Numbers are scalable and unambiguous. A named system has no obvious slot for a step between "light" and "lighter", whereas a numeric ramp can accommodate any number of steps in a predictable order. The numbers also communicate relative position without needing to remember which name maps to which intensity.
How do I integrate a custom palette without breaking utilities?
Extend rather than replace. Adding your scale under a new key in the `theme.extend.colors` object keeps Tailwind's default palette intact, so existing classes continue to work while your new tokens become available alongside them. Replacing the default palette wholesale breaks any class you have not migrated yet.
Do I need a step for every value?
No, but keeping the full ramp is worth the few bytes. A complete scale means that when a design calls for a slightly stronger border or a subtly different hover state, there is already a value for it. The alternative is that people reach for arbitrary values, and the palette quietly stops being a system.
Related Image & Color Tools
You might also need
Tools from other categories that people pair with the Tailwind Palette: