Tailwind CSS v4 default palette
Tailwind rose-900: #8B0836
In Tailwind CSS v4, rose-900 is defined as --color-rose-900: oklch(41% 0.159 10.272), which is #8B0836 in hex and rgb(139, 8, 54): a dark, vivid red. In Tailwind v3, rose-900 was #881337.
In OKLCH, rose-900 has a lightness of 41.0%, chroma 0.159 and hue 10.3°.
The value fits inside sRGB, so the hex #8B0836 represents it without loss on any screen.
In v3, rose-900 was #881337. The v4 value is ΔE OK 0.9 away, below the point where most people can tell them apart; v4 is more saturated.
Tailwind rose is a warm pink-red between pink and red, often used as a softer alternative to red for destructive actions.
Color codes for rose-900
| Tailwind v4 token | --color-rose-900 |
|---|---|
| OKLCH (source value) | oklch(41% 0.159 10.272) |
| HEX | #8B0836 |
| RGB | rgb(139, 8, 54) |
| HSL | hsl(339, 89%, 29%) |
| HWB | hwb(339 3% 45%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 94%, 61%, 45%) |
| Decimal | 9,111,606 |
| Tailwind v3 hex | #881337 |
| Utility classes | bg-rose-900, text-rose-900, border-rose-900 |
Tailwind rose scale
Contrast and accessibility
On rose-900, white text has a contrast ratio of 9.60:1 and passes AAA at any text size; black text reaches 2.18:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on rose-900 | 2.18:1 | Fail | Fail | Fail | Fail | 13.7 |
| White text on rose-900 | 9.60:1 | Pass | Pass | Pass | Pass | −94.7 |
| Rose-900 text on white | 9.60:1 | Pass | Pass | Pass | Pass | 90.3 |
| Rose-900 text on black | 2.18:1 | Fail | Fail | Fail | Fail | −12.0 |
Tints and shades
Each step mixes var(--color-rose-900) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-rose-900), white 25%) in CSS.
Tints (mixed with white)
- 5%
#911440 - 15%
#9c2d54 - 25%
#a84668 - 35%
#b45e7c - 45%
#bf7790 - 55%
#cb90a5 - 65%
#d6a9b9 - 75%
#e2c1cd - 85%
#eedae1 - 95%
#f9f3f5
Shades (mixed with black)
- 5%
#840833 - 15%
#76072e - 25%
#680629 - 35%
#5a0523 - 45%
#4c041e - 55%
#3f0418 - 65%
#310313 - 75%
#23020e - 85%
#150108 - 95%
#070003
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, rose-900's complementary color is #005955 (close to darkslategray), its analogous colors are #7D1664 and #8A1900, and its triadic partners are #305700 and #004999. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #005955 |
| Analogous | −30°, +30° | #7d1664#8a1900 |
| Triadic | +120°, +240° | #305700#004999 |
| Split-complementary | +150°, +210° | #005d33#00556e |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
Tailwind rose-900 is a warm color: its hue is 339° on the HSL wheel, in the red, orange and yellow range (0° to about 70°, plus reds above 330°) that is conventionally called warm.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Code snippets
<div class="bg-rose-900 text-white">...</div>
<p class="text-rose-900 border-rose-900">...</p>.element {
color: var(--color-rose-900);
background-color: oklch(41% 0.159 10.272);
border-color: #8b0836;
outline-color: rgb(139 8 54);
}import SwiftUI
extension Color {
static let rose900 = Color(red: 0.545, green: 0.031, blue: 0.212)
}import androidx.compose.ui.graphics.Color
val Rose900 = Color(0xFF8B0836)import 'package:flutter/material.dart';
const rose900 = Color(0xFF8B0836);<!-- res/values/colors.xml -->
<color name="rose_900">#8B0836</color>Frequently asked questions
- What is the hex code for Tailwind rose-900?
- In Tailwind CSS v4, rose-900 is oklch(41% 0.159 10.272), which converts to #8B0836 (rgb(139, 8, 54)) in sRGB. In Tailwind v3 the same name was #881337.
- What is the difference between rose-900 in Tailwind v3 and v4?
- v3 used the hex #881337; v4 redefined the palette in OKLCH as oklch(41% 0.159 10.272). In v3, rose-900 was #881337. The v4 value is ΔE OK 0.9 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use rose-900 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-rose-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on rose-900?
- White text on rose-900 has a contrast ratio of 9.60:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.18:1 and fails AA even for large text. In APCA terms that is Lc −94.7 for white and Lc 13.7 for black.
- Which CSS named color is closest to rose-900?
- The closest is darkred (#8B0000) at ΔE OK 5.4, followed by maroon and brown.
Last reviewed by Arielton Oberek.