About the Tailwind Color Generator
Tailwind Color Generator takes a single brand color and builds a full set of shades named 50, 100, 200 through 900 and 950, the same naming scheme Tailwind CSS uses for its built-in colors. You can name the color and export the scale in the format your project needs, ready to paste.
How it works
The base color becomes shade 500 unchanged. Lighter shades are made by mixing the base toward white in RGB: 400 is 20% of the way to white, 300 is 40%, 200 is 60%, 100 is 80% and 50 is 90%. Each channel is computed as c + (255 - c) x weight and rounded.
Darker shades scale each channel down toward black: 600 keeps 90% of the base, 700 keeps 80%, 800 70%, 900 60% and 950 50%. The color name is lowercased and any character other than a-z, 0-9 or a hyphen becomes a hyphen, so "Brand Green" turns into brand-green. The code is then written in the selected format with uppercase HEX values.
How to use
- 1
Click the color swatch and pick your base color.
- 2
Type a Color name, such as primary or brand.
- 3
Review the 11 shades, and use the copy icon on any row to grab a single HEX value.
- 4
Choose Tailwind v4, Tailwind v3 or CSS variables, then click Copy config and paste the code into your project.
Worked examples
Emerald brand color for Tailwind v4
A startup uses #10B981 as its brand color and calls it brand.
After pasting this into your main CSS file, classes such as bg-brand-50 and text-brand-700 become available.
Same scale as CSS variables
A project without Tailwind wants the default blue as variables.
Frequently asked questions
How does Tailwind's shade numbering work?+
Lower numbers are lighter and higher numbers are darker. 50 is the palest tint, 950 the deepest shade, and 500 is typically the core color.
Can I use these shades outside of Tailwind?+
Yes. Choose the CSS variables format to get a :root block that works in any stylesheet, or copy individual HEX values.
Why don't my shades match Tailwind's built-in blue?+
Tailwind's palettes are hand-tuned in OKLCH. This tool mixes toward white and black in RGB, which is predictable but slightly different.
Where do I paste the Tailwind v4 code?+
In your main CSS file, after the line that imports Tailwind. The @theme block registers the colors as utilities.
What happens if my color name has spaces or capitals?+
It's lowercased and any character other than letters, digits or hyphens is replaced with a hyphen, so "Brand Green" becomes brand-green.