How to Generate Shades and Tints of Any Color
How to build a 50-950 color scale, with Tailwind's own palette measured: blues drift 13° towards violet and ambers 50° towards orange as they darken, and no 400 step reaches 4.5:1 contrast on white.
Shades, Tints and Tones
A tint is a color mixed with white, a shade a color mixed with black, and a tone a color mixed with grey. Design systems turn these into a numbered scale, usually 50 (lightest) to 900 or 950 (darkest), so every step has a fixed name such as blue-600.
Good Scales Bend: Measured in Tailwind's Palette
We read Tailwind CSS 4.3.3's own palette (its theme.css, written in OKLCH) and tracked the hue of each step (October 13, 2026; script in our test folder). The hue is not constant:
| Family | Hue at 50 → 950 (OKLCH degrees) | Direction as it darkens |
|---|---|---|
| blue | 254.6 → 267.9 | towards violet |
| amber | 95.3 → 45.6 | towards orange-brown |
| yellow | 102.2 → 53.8 | towards ochre |
| red | 17.4 → 26.0 | slightly towards orange |
| green | 155.8 → 152.9 | almost constant |
So the designers rotated blues and yellows deliberately while leaving green alone. That is why a scale made by mixing with white and black looks off: mixing in sRGB also shifts hue, but not in the direction you want. Mixing amber-500 with 50% white in sRGB moved its OKLCH hue by +11.9° (towards yellow, a washed-out look), while mixing in OKLCH kept the hue exactly. Generate scales in OKLCH, then adjust hue per step by eye if the family needs it.
Which Steps Can Carry Text
The common advice that 400 suits secondary text does not survive a contrast check. Against white, using WCAG 2.2's formula on Tailwind's values:
| Family | 400 on white | First step with ≥ 4.5:1 for body text |
|---|---|---|
| blue | 2.64:1 | 600 (5.26:1) |
| red | 2.89:1 | 600 (4.76:1) |
| green | 1.78:1 | 700 (4.94:1) |
| amber | 1.72:1 | 700 (5.05:1) |
| yellow | 1.57:1 | 700 (4.92:1) |
| slate | 2.63:1 | 500 (4.77:1) |
A workable mapping on white backgrounds: 50-100 for surfaces, 200-300 for decorative borders (a border that is the only edge of an input needs 3:1, WCAG 1.4.11, which most 300s miss: 1.32-1.92:1 here), 500-600 for accents and icons, and 600-700 or darker for text. On dark backgrounds the mapping flips, so check each pair rather than reusing the light-mode numbers.
Making a Scale
The Color Shade Generator builds a 50-950 scale in OKLCH from one base color and keeps your base exactly at its step; it does not grade contrast, so check text pairs in the Contrast Checker. Copy the result as CSS custom properties (--color-50 … --color-950); for Tailwind v4, rename them to --color-brand-50 and so on inside an @theme block. The Tailwind Color Finder shows the nearest built-in Tailwind color for any value.
Frequently Asked Questions
What is the difference between a shade and a tint?
How many shades do I need?
Why do colors look wrong when I just lighten/darken them?
Use the Color Shade Generator — free, no signup required.
⚡ Open Color Shade Generator- [1]Tailwind CSS 4.3.3 theme.css (palette in OKLCH), checked Oct 13, 2026 ↗
- [2]W3C, Understanding WCAG 2.2 SC 1.4.3 Contrast (Minimum) ↗
- [3]W3C, Understanding WCAG 2.2 SC 1.4.11 Non-text Contrast ↗
- [4]W3C, CSS Color Module Level 4: OKLab and OKLCH ↗
- [5]coloraide (colour library used for the measurements) ↗
