Eleven shades, from gray-50 to gray-950
Tailwind gray colors
Tailwind CSS 4.3.3 defines eleven gray shades in OKLCH, from gray-50 (#f9fafb) to gray-950 (#030712). On them white text passes WCAG AA from gray-500 to gray-950, and black text from gray-50 to gray-400. Recolor (recolor.page) shows the scale on a real page.
Last updated
- 50#f9fafb
- 100#f3f4f6
- 200#e5e7eb
- 300#d1d5dc
- 400#99a1af
- 500#6a7282
- 600#4a5565
- 700#364153
- 800#1e2939
- 900#101828
- 950#030712
| Shade | OKLCH | Hex | White text | Black text |
|---|---|---|---|---|
| gray-50 | oklch(98.5% 0.002 247.839) | #f9fafb | 1.05:1 fails | 20.10:1 passes |
| gray-100 | oklch(96.7% 0.003 264.542) | #f3f4f6 | 1.10:1 fails | 19.08:1 passes |
| gray-200 | oklch(92.8% 0.006 264.531) | #e5e7eb | 1.24:1 fails | 16.96:1 passes |
| gray-300 | oklch(87.2% 0.01 258.338) | #d1d5dc | 1.47:1 fails | 14.26:1 passes |
| gray-400 | oklch(70.7% 0.022 261.325) | #99a1af | 2.60:1 fails | 8.07:1 passes |
| gray-500 | oklch(55.1% 0.027 264.364) | #6a7282 | 4.84:1 passes | 4.34:1 fails |
| gray-600 | oklch(44.6% 0.03 256.802) | #4a5565 | 7.56:1 passes | 2.78:1 fails |
| gray-700 | oklch(37.3% 0.034 259.733) | #364153 | 10.30:1 passes | 2.04:1 fails |
| gray-800 | oklch(27.8% 0.033 256.848) | #1e2939 | 14.67:1 passes | 1.43:1 fails |
| gray-900 | oklch(21% 0.034 264.665) | #101828 | 17.75:1 passes | 1.18:1 fails |
| gray-950 | oklch(13% 0.028 261.692) | #030712 | 20.13:1 passes | 1.04:1 fails |
Text on gray, and gray as text
As a text color the rule turns around: gray text on a white page passes AA from gray-500 on, and on a black page up to gray-400, since a contrast ratio is the same whichever color is in front.
It is one of Tailwind's nine grays: its chroma stays at or under 0.034, with a hint of blue.
All eleven fit inside sRGB, so every hex code here is exact.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org