A vivid medium red, black text passes AA
Tailwind rose-500
Tailwind rose-500 is oklch(64.5% 0.246 16.439) in Tailwind CSS 4.3.3, which is #ff2056 as the nearest sRGB hex and rgb(255 32 86). Black text on it reaches 5.59:1, passing WCAG AA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-rose-500), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(64.5% 0.246 16.439) |
| Hex | #ff2056, the nearest color in sRGB |
| RGB | rgb(255 32 86) |
| HSL | hsl(345 100% 56%) |
| OKLCH of the hex | oklch(64.3% 0.245 16.5) |
| CSS variable | var(--color-rose-500) |
| Nearest CSS name | red #ff0000, 0.059 away in OKLab |
| White text | 3.75:1: AA fails, AAA fails, large text passes |
| Black text | 5.59:1: AA passes, AAA fails, large text passes |
About rose-500
Tailwind rose-500 is a vivid medium red: OKLCH lightness 64.5%, chroma 0.246, hue 16.4 degrees. On Tailwind's rose scale it sits between rose-400 at 71.2% and rose-600 at 58.6%.
Its lightness is 56% in HSL and 64.5% in OKLCH, 8 points apart; only the second tracks how light it looks. Its value lies outside sRGB, the colors a hex code can name: #ff2056 is what CSS Color 4's gamut mapping makes of it, chroma 0.245 instead of 0.246, moving 0.2 points of lightness and 0.1 degrees of hue. A wide-gamut screen shows the stronger original.
Black text on rose-500 reaches 5.59:1, enough for WCAG AA body text but short of AAA's 7:1; white text gets 3.75:1. On the rose scale black text works down to rose-600, which leaves rose-500 1 shade of margin.
No CSS keyword matches it; red (#ff0000) is the nearest, 0.059 away in OKLab, a clear step off.
Tints and shades
- #ffe1e2
- #ffc3c5
- #ffa3a9
- #ff828d
- #ff5b71
- #ff2056
- #c81742
- #940e2e
- #63061c
- #36020b
- #0f0001
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
- #ff2056
- #f9d9e5
- #301f21
- #f6ac94
- #794a26
Recolor's generator, with rose-500 locked as swatch 1 and the seed taken from its hex, drew an analogous palette, hues next to each other on the wheel: #f9d9e5, #301f21, #f6ac94, #794a26. Open it in Recolor.
Using rose-500
Pair it with text-black, 5.59:1; rose-500 as text on a black page measures the same ratio. In CSS it is var(--color-rose-500).
<a class="bg-rose-500 text-black" href="/start">Get started</a>
<p class="text-rose-500">Text in rose-500</p>Common questions
Does white text pass WCAG AA on Tailwind rose-500?
No. White text measures 3.75:1 on rose-500, under AA's 4.5:1; black text measures 5.59:1 and passes. The lightest rose shade for white text is rose-600.
Is Tailwind rose-500 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-rose-500: oklch(64.5% 0.246 16.439); #ff2056 is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind rose-500?
No. The nearest CSS named color is red (#ff0000), 0.059 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