Eleven shades, from zinc-50 to zinc-950
Tailwind zinc colors
Tailwind CSS 4.3.3 defines eleven zinc shades in OKLCH, from zinc-50 (#fafafa) to zinc-950 (#09090b). On them white text passes WCAG AA from zinc-500 to zinc-950, and black text from zinc-50 to zinc-400. Recolor (recolor.page) shows the scale on a real page.
Last updated
- 50#fafafa
- 100#f4f4f5
- 200#e4e4e7
- 300#d4d4d8
- 400#9f9fa9
- 500#71717b
- 600#52525c
- 700#3f3f46
- 800#27272a
- 900#18181b
- 950#09090b
| Shade | OKLCH | Hex | White text | Black text |
|---|---|---|---|---|
| zinc-50 | oklch(98.5% 0 none) | #fafafa | 1.04:1 fails | 20.12:1 passes |
| zinc-100 | oklch(96.7% 0.001 286.375) | #f4f4f5 | 1.10:1 fails | 19.11:1 passes |
| zinc-200 | oklch(92% 0.004 286.32) | #e4e4e7 | 1.27:1 fails | 16.55:1 passes |
| zinc-300 | oklch(87.1% 0.006 286.286) | #d4d4d8 | 1.48:1 fails | 14.21:1 passes |
| zinc-400 | oklch(70.5% 0.015 286.067) | #9f9fa9 | 2.62:1 fails | 8.01:1 passes |
| zinc-500 | oklch(55.2% 0.016 285.938) | #71717b | 4.83:1 passes | 4.35:1 fails |
| zinc-600 | oklch(44.2% 0.017 285.786) | #52525c | 7.72:1 passes | 2.72:1 fails |
| zinc-700 | oklch(37% 0.013 285.805) | #3f3f46 | 10.44:1 passes | 2.01:1 fails |
| zinc-800 | oklch(27.4% 0.006 286.033) | #27272a | 14.89:1 passes | 1.41:1 fails |
| zinc-900 | oklch(21% 0.006 285.885) | #18181b | 17.72:1 passes | 1.19:1 fails |
| zinc-950 | oklch(14.1% 0.005 285.823) | #09090b | 19.90:1 passes | 1.06:1 fails |
Text on zinc, and zinc as text
For zinc text the same lines hold in reverse: on white, use zinc-500 or darker; on black, zinc-400 or lighter. Contrast does not care which color sits behind.
Tailwind ships nine grays, and zinc is the one with a indigo hint: its chroma never passes 0.017.
None of the eleven leaves sRGB, so each hex matches its OKLCH value.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org