ColorMar 26, 2026 · Updated Oct 13, 2026 · 3 min read

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.

Yellow, wall, concrete — illustrating How to Generate Shades and Tints of Any Color
🎚️
Try the Color Shade Generator
Free, no signup
→
DG
Derek Giordano
Designer & Developer
In this guide
01Shades, Tints and Tones02Good Scales Bend: Measured in Tailwind's Palette03Which Steps Can Carry Text04Making a Scale

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:

FamilyHue at 50 → 950 (OKLCH degrees)Direction as it darkens
blue254.6 → 267.9towards violet
amber95.3 → 45.6towards orange-brown
yellow102.2 → 53.8towards ochre
red17.4 → 26.0slightly towards orange
green155.8 → 152.9almost 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:

Family400 on whiteFirst step with ≥ 4.5:1 for body text
blue2.64:1600 (5.26:1)
red2.89:1600 (4.76:1)
green1.78:1700 (4.94:1)
amber1.72:1700 (5.05:1)
yellow1.57:1700 (4.92:1)
slate2.63:1500 (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?+
A shade is a color darkened by mixing with black. A tint is a color lightened by mixing with white. A tone is a color muted by mixing with gray. Design systems typically use all three across a numbered scale (50–900).
How many shades do I need?+
Most systems use 11 steps: 50, 100, 200 to 900, and 950. What matters more is knowing which steps pass contrast: in Tailwind's palette on white, body text needs 600 or darker for blue and red, 700 for green, amber and yellow, and 500 for slate.
Why do colors look wrong when I just lighten/darken them?+
Linear lightening/darkening doesn't account for how human vision perceives color. Light tints can look washed out, and dark shades can appear muddy. Good shade generators adjust hue and saturation along with lightness for perceptually balanced results.
Try it yourself

Use the Color Shade Generator — free, no signup required.

⚡ Open Color Shade Generator
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.