Tailwind Shade Generator
Turn one brand color into a full Tailwind scale. Pick your color and a name, then copy the shades into your Tailwind v3 config or your v4 @theme block.
Runs in your browser. Nothing you type is uploaded.
Result
The other shades step lightness in OKLCH and keep your hue.
- Shades
- 11 50 to 950
- White text passes AA on
- 600 and darker 4.5:1 or more
| Shade | HEX | OKLCH | On white | On black |
|---|---|---|---|---|
| 50 | #fff5ed | oklch(97.6% 0.015 61.3) | 1.07:1 | 19.53:1 |
| 100 | #ffe5d4 | oklch(93.9% 0.037 55.4) | 1.20:1 | 17.41:1 |
| 200 | #fcceae | oklch(88.3% 0.067 56.5) | 1.44:1 | 14.57:1 |
| 300 | #f2af7e | oklch(80.6% 0.101 56.9) | 1.87:1 | 11.20:1 |
| 400 (your color) | #e08a45 | oklch(71.1% 0.134 56.9) | 2.66:1 | 7.89:1 |
| 500 | #cb6e0e | oklch(63.2% 0.149 57.1) | 3.63:1 | 5.77:1 |
| 600 | #ab5a00 | oklch(55.3% 0.134 57) | 5.00:1 | 4.19:1 |
| 700 | #8c4900 | oklch(47.8% 0.115 57.4) | 6.84:1 | 3.06:1 |
| 800 | #713900 | oklch(40.9% 0.099 56.6) | 9.18:1 | 2.28:1 |
| 900 | #5c2e00 | oklch(35.5% 0.085 57.5) | 11.37:1 | 1.84:1 |
| 950 | #3c1b00 | oklch(26.5% 0.065 56) | 15.56:1 | 1.34:1 |
// tailwind.config.js (Tailwind v3)
module.exports = {
theme: {
extend: {
colors: {
brand: {
50: '#fff5ed',
100: '#ffe5d4',
200: '#fcceae',
300: '#f2af7e',
400: '#e08a45',
500: '#cb6e0e',
600: '#ab5a00',
700: '#8c4900',
800: '#713900',
900: '#5c2e00',
950: '#3c1b00',
DEFAULT: '#e08a45',
},
},
},
},
};/* Tailwind v4: add to your main CSS file */
@theme {
--color-brand-50: #fff5ed;
--color-brand-100: #ffe5d4;
--color-brand-200: #fcceae;
--color-brand-300: #f2af7e;
--color-brand-400: #e08a45;
--color-brand-500: #cb6e0e;
--color-brand-600: #ab5a00;
--color-brand-700: #8c4900;
--color-brand-800: #713900;
--color-brand-900: #5c2e00;
--color-brand-950: #3c1b00;
}How it works
- Lightness steps
- Each shade has a target lightness in OKLCH, from very light at 50 to very dark at 950. The steps are stretched so the curve passes exactly through your color.
- Hue and chroma
- Every shade keeps your hue. Chroma is lower at the light and dark ends, as in hand-made scales, and any shade outside the sRGB range has its chroma reduced until it fits.
- Your color stays
- The shade closest to your color in lightness is your exact color, so bg-brand-500 or whichever step it lands on matches your brand.
Questions
Why is my color not at 500?
The scale places your color where its lightness fits. A light color lands on 300 or 400 and a dark one on 700 or 800, so the rest of the scale still runs from light to dark.
How do I use this in Tailwind v4?
Paste the @theme block into your main CSS file, after the Tailwind import. Classes like bg-brand-600 and text-brand-50 then work right away.
Which shade should buttons use?
Pick the lightest shade where white text passes AA, shown in the summary. Use one step darker for the hover state.
Get CapyLaunch Weekly
New indie launches and the week in AI tools and models, every Monday. Free, and you can unsubscribe anytime.
Your launch, this week. Free.
A reviewed listing, a permanent page with a link to your site, and feedback from makers who actually care.