A yellowish white, black text passes AA
Tailwind amber-50
The hex code of Tailwind amber-50 is #fffbeb (rgb(255 251 235)), from its Tailwind CSS 4.3.3 value oklch(98.7% 0.022 95.277). Black text on it reaches 20.25:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-amber-50), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(98.7% 0.022 95.277) |
| Hex | #fffbeb, the nearest color in sRGB |
| RGB | rgb(255 251 235) |
| HSL | hsl(48 100% 96%) |
| OKLCH of the hex | oklch(98.7% 0.021 95.3) |
| CSS variable | var(--color-amber-50) |
| Nearest CSS name | floralwhite #fffaf0, 0.008 away in OKLab |
| White text | 1.04:1: AA fails, AAA fails, large text fails |
| Black text | 20.25:1: AA passes, AAA passes, large text passes |
About amber-50
Read as numbers, amber-50 is lightness 98.7%, chroma 0.022 and hue 95.3 degrees; read by eye, it is a yellowish white. It opens the amber scale as its lightest shade, 2.5 points of lightness above amber-100.
HSL and OKLCH agree on how light it is, 96% and 98.7%. A hex code cannot hold amber-50 exactly: the value is outside sRGB, and #fffbeb is the CSS Color 4 gamut mapping of it, chroma lowered by 0.001, 0.0 points of lightness and 0.0 degrees of hue away from the value.
Black on amber-50 reads at 20.25:1, enough for AAA body text; white reaches 1.04:1 and should stay off it. Black text passes on every amber shade from amber-50 to amber-600, 6 shades darker than amber-50.
Its nearest CSS named color, floralwhite (#fffaf0), is 0.008 away in OKLab, too close to tell apart by eye.
Tints and shades
- #fffefc
- #fffef8
- #fffdf5
- #fffcf2
- #fffcee
- #fffbeb
- #c8c5b8
- #949288
- #63615b
- #363531
- #0f0e0c
From light to dark: 5 toward white and 5 toward black, mixed in OKLCH a sixth of the way at a time with the hue kept. A step that would repeat its neighbor is left out.
A palette around it
- #fffbeb
- #529179
- #2a1a12
- #efbca8
- #4f4a66
Around amber-50 as swatch 1, Recolor's generator made a triadic palette, three hues a third of the wheel apart: #529179, #2a1a12, #efbca8, #4f4a66, drawn from a seed fixed by its hex. Open it in Recolor.
Using amber-50
Pair it with text-black, 20.25:1; amber-50 as text on a black page measures the same ratio. In CSS it is var(--color-amber-50).
<a class="bg-amber-50 text-black" href="/start">Get started</a>
<p class="text-amber-50">Text in amber-50</p>Common questions
Does white text pass WCAG AA on Tailwind amber-50?
No. White text measures 1.04:1 on amber-50, under AA's 4.5:1; black text measures 20.25:1 and passes. The lightest amber shade for white text is amber-700.
Is Tailwind amber-50 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-amber-50: oklch(98.7% 0.022 95.277); #fffbeb is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind amber-50?
Yes, nearly: floralwhite (#fffaf0) is 0.008 away in OKLab, too close to tell apart by eye.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org
- CSS Color Module Level 4: gamut mapping w3.org