Eleven shades, from amber-50 to amber-950
Tailwind amber colors
Tailwind CSS 4.3.3 defines eleven amber shades in OKLCH, from amber-50 (#fffbeb) to amber-950 (#461901). On them white text passes WCAG AA from amber-700 to amber-950, and black text from amber-50 to amber-600. Recolor (recolor.page) shows the scale on a real page.
Last updated
- 50#fffbeb
- 100#fef3c6
- 200#fee685
- 300#ffd230
- 400#ffba00
- 500#fd9a00
- 600#e17100
- 700#bb4d00
- 800#973c00
- 900#7b3306
- 950#461901
| Shade | OKLCH | Hex | White text | Black text |
|---|---|---|---|---|
| amber-50 | oklch(98.7% 0.022 95.277) | #fffbeb | 1.04:1 fails | 20.25:1 passes |
| amber-100 | oklch(96.2% 0.059 95.617) | #fef3c6 | 1.11:1 fails | 18.85:1 passes |
| amber-200 | oklch(92.4% 0.12 95.746) | #fee685 | 1.24:1 fails | 16.87:1 passes |
| amber-300 | oklch(87.9% 0.169 91.605) | #ffd230 | 1.45:1 fails | 14.51:1 passes |
| amber-400 | oklch(82.8% 0.189 84.429) | #ffba00 | 1.71:1 fails | 12.28:1 passes |
| amber-500 | oklch(76.9% 0.188 70.08) | #fd9a00 | 2.14:1 fails | 9.80:1 passes |
| amber-600 | oklch(66.6% 0.179 58.318) | #e17100 | 3.20:1 fails | 6.56:1 passes |
| amber-700 | oklch(55.5% 0.163 48.998) | #bb4d00 | 5.03:1 passes | 4.17:1 fails |
| amber-800 | oklch(47.3% 0.137 46.201) | #973c00 | 7.09:1 passes | 2.96:1 fails |
| amber-900 | oklch(41.4% 0.112 45.904) | #7b3306 | 9.06:1 passes | 2.32:1 fails |
| amber-950 | oklch(27.9% 0.077 45.635) | #461901 | 15.00:1 passes | 1.40:1 fails |
Text on amber, and amber as text
As a text color the rule turns around: amber text on a white page passes AA from amber-700 on, and on a black page up to amber-600, since a contrast ratio is the same whichever color is in front.
Chroma peaks at amber-400 (0.189) and falls toward both ends, while the hue drifts 50.1 degrees across the scale.
7 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