A vivid medium red, black text passes AA
Tailwind rose-400
The hex code of Tailwind rose-400 is #ff637e (rgb(255 99 126)), from its Tailwind CSS 4.3.3 value oklch(71.2% 0.194 13.428). Black text on it reaches 7.34:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-rose-400), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(71.2% 0.194 13.428) |
| Hex | #ff637e, the nearest color in sRGB |
| RGB | rgb(255 99 126) |
| HSL | hsl(350 100% 69%) |
| OKLCH of the hex | oklch(70.6% 0.190 13.0) |
| CSS variable | var(--color-rose-400) |
| Nearest CSS name | lightcoral #f08080, 0.060 away in OKLab |
| White text | 2.86:1: AA fails, AAA fails, large text fails |
| Black text | 7.34:1: AA passes, AAA passes, large text passes |
About rose-400
Read as numbers, rose-400 is lightness 71.2%, chroma 0.194 and hue 13.4 degrees; read by eye, it is a vivid medium red. Its neighbors on the rose scale are rose-300, 9.8 points lighter, and rose-500, 6.7 points darker.
HSL and OKLCH agree on how light it is, 69% and 71.2%. A hex code cannot hold rose-400 exactly: the value is outside sRGB, and #ff637e is the CSS Color 4 gamut mapping of it, chroma lowered by 0.004, 0.6 points of lightness and 0.4 degrees of hue away from the value.
Black on rose-400 reads at 7.34:1, enough for AAA body text; white reaches 2.86:1 and should stay off it. Black text passes on every rose shade from rose-50 to rose-600, 2 shades darker than rose-400.
The nearest CSS named color, lightcoral (#f08080), is 0.060 away in OKLab: related, but plainly a different color.
Tints and shades
- #ffe7e9
- #ffced3
- #ffb5bd
- #ff9ca8
- #ff8193
- #ff637e
- #c84c61
- #943646
- #63212d
- #360f15
- #0f0203
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
- #ff637e
- #271619
- #d9abaf
- #624445
- #fedcdd
Around rose-400 as swatch 1, Recolor's generator made a monochromatic palette, one hue in five lightnesses: #271619, #d9abaf, #624445, #fedcdd, drawn from a seed fixed by its hex. Open it in Recolor.
Using rose-400
Pair it with text-black, 7.34:1; rose-400 as text on a black page measures the same ratio. In CSS it is var(--color-rose-400).
<a class="bg-rose-400 text-black" href="/start">Get started</a>
<p class="text-rose-400">Text in rose-400</p>Common questions
Does white text pass WCAG AA on Tailwind rose-400?
No. White text measures 2.86:1 on rose-400, under AA's 4.5:1; black text measures 7.34:1 and passes. The lightest rose shade for white text is rose-600.
Is Tailwind rose-400 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-rose-400: oklch(71.2% 0.194 13.428); #ff637e is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind rose-400?
No. The nearest CSS named color is lightcoral (#f08080), 0.060 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org
- CSS Color Module Level 4: gamut mapping w3.org