Eleven shades, from red-50 to red-950
Tailwind red colors
Tailwind CSS 4.3.3 defines eleven red shades in OKLCH, from red-50 (#fef2f2) to red-950 (#460809). On them white text passes WCAG AA from red-600 to red-950, and black text from red-50 to red-500. Recolor (recolor.page) shows the scale on a real page.
Last updated
- 50#fef2f2
- 100#ffe2e2
- 200#ffc9c9
- 300#ffa2a2
- 400#ff6467
- 500#fb2c36
- 600#e7000b
- 700#c10007
- 800#9f0712
- 900#82181a
- 950#460809
| Shade | OKLCH | Hex | White text | Black text |
|---|---|---|---|---|
| red-50 | oklch(97.1% 0.013 17.38) | #fef2f2 | 1.09:1 fails | 19.20:1 passes |
| red-100 | oklch(93.6% 0.032 17.717) | #ffe2e2 | 1.22:1 fails | 17.23:1 passes |
| red-200 | oklch(88.5% 0.062 18.334) | #ffc9c9 | 1.45:1 fails | 14.45:1 passes |
| red-300 | oklch(80.8% 0.114 19.571) | #ffa2a2 | 1.92:1 fails | 10.94:1 passes |
| red-400 | oklch(70.4% 0.191 22.216) | #ff6467 | 2.89:1 fails | 7.27:1 passes |
| red-500 | oklch(63.7% 0.237 25.331) | #fb2c36 | 3.81:1 fails | 5.52:1 passes |
| red-600 | oklch(57.7% 0.245 27.325) | #e7000b | 4.77:1 passes | 4.40:1 fails |
| red-700 | oklch(50.5% 0.213 27.518) | #c10007 | 6.42:1 passes | 3.27:1 fails |
| red-800 | oklch(44.4% 0.177 26.899) | #9f0712 | 8.36:1 passes | 2.51:1 fails |
| red-900 | oklch(39.6% 0.141 25.723) | #82181a | 10.03:1 passes | 2.09:1 fails |
| red-950 | oklch(25.8% 0.092 26.042) | #460809 | 16.17:1 passes | 1.30:1 fails |
Text on red, and red as text
As a text color the rule turns around: red text on a white page passes AA from red-600 on, and on a black page up to red-500, since a contrast ratio is the same whichever color is in front.
Chroma peaks at red-600 (0.245) and falls toward both ends, while the hue drifts 10.1 degrees across the scale.
5 of the eleven lie outside sRGB, so their hex codes are the nearest sRGB colors, and a wide-gamut screen shows them stronger.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org