Skip to content

Tailwind CSS v4 default palette

Tailwind rose-950: #4D0218

In Tailwind CSS v4, rose-950 is defined as --color-rose-950: oklch(27.1% 0.105 12.094), which is #4D0218 in hex and rgb(77, 2, 24): a very dark, moderately saturated red. In Tailwind v3, rose-950 was #4C0519.

rose-950#4D0218

In OKLCH, rose-950 has a lightness of 27.1%, chroma 0.105 and hue 12.1°.

The value fits inside sRGB, so the hex #4D0218 represents it without loss on any screen.

In v3, rose-950 was #4C0519. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.

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-950

Color codes for rose-950
Tailwind v4 token--color-rose-950
OKLCH (source value)oklch(27.1% 0.105 12.094)
HEX#4D0218
RGBrgb(77, 2, 24)
HSLhsl(342, 95%, 15%)
HWBhwb(342 1% 70%)
CMYK (naive, no ICC profile)cmyk(0%, 97%, 69%, 70%)
Decimal5,046,808
Tailwind v3 hex#4C0519
Utility classesbg-rose-950, text-rose-950, border-rose-950

Tailwind rose scale

Contrast and accessibility

On rose-950, white text has a contrast ratio of 15.70:1 and passes AAA at any text size; black text reaches 1.33: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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on rose-9501.33:1FailFailFailFail0.0
White text on rose-95015.70:1PassPassPassPass−104.3
Rose-950 text on white15.70:1PassPassPassPass101.4
Rose-950 text on black1.33:1FailFailFailFail0.0

Tints and shades

Each step mixes var(--color-rose-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-rose-950), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #560f24
  2. 15%
    #68283b
  3. 25%
    #7a4152
  4. 35%
    #8b5b69
  5. 45%
    #9d7480
  6. 55%
    #af8d97
  7. 65%
    #c1a6ae
  8. 75%
    #d3c0c5
  9. 85%
    #e4d9dc
  10. 95%
    #f6f2f3

Shades (mixed with black)

  1. 5%
    #490217
  2. 15%
    #410214
  3. 25%
    #3a0212
  4. 35%
    #320110
  5. 45%
    #2a010d
  6. 55%
    #23010b
  7. 65%
    #1b0108
  8. 75%
    #130106
  9. 85%
    #0c0004
  10. 95%
    #040001

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, rose-950's complementary color is #00302F (close to darkslategray), its analogous colors are #460735 and #4D0900, and its triadic partners are #112F00 and #002557. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00302f
Analogous−30°, +30°#460735#4d0900
Triadic+120°, +240°#112f00#002557
Split-complementary+150°, +210°#003219#002d3f

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-950 is a warm color: its hue is 342° 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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
maroon#80000012.3
darkred#8b000014.7
indigo#4b008218.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
pink-950#5104242.0
red-950#4608093.0
orange-950#4413064.6

Code snippets

Tailwind CSS
<div class="bg-rose-950 text-white">...</div>
<p class="text-rose-950 border-rose-950">...</p>
CSS
.element {
  color: var(--color-rose-950);
  background-color: oklch(27.1% 0.105 12.094);
  border-color: #4d0218;
  outline-color: rgb(77 2 24);
}
SwiftUI
import SwiftUI

extension Color {
  static let rose950 = Color(red: 0.302, green: 0.008, blue: 0.094)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Rose950 = Color(0xFF4D0218)
Flutter
import 'package:flutter/material.dart';

const rose950 = Color(0xFF4D0218);
Android XML
<!-- res/values/colors.xml -->
<color name="rose_950">#4D0218</color>

Frequently asked questions

What is the hex code for Tailwind rose-950?
In Tailwind CSS v4, rose-950 is oklch(27.1% 0.105 12.094), which converts to #4D0218 (rgb(77, 2, 24)) in sRGB. In Tailwind v3 the same name was #4C0519.
What is the difference between rose-950 in Tailwind v3 and v4?
v3 used the hex #4C0519; v4 redefined the palette in OKLCH as oklch(27.1% 0.105 12.094). In v3, rose-950 was #4C0519. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
How do I use rose-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-rose-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on rose-950?
White text on rose-950 has a contrast ratio of 15.70:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.33:1 and fails AA even for large text. In APCA terms that is Lc −104.3 for white and Lc 0.0 for black.
Which CSS named color is closest to rose-950?
The closest is maroon (#800000) at ΔE OK 12.3, followed by darkred and indigo.

Last reviewed by Arielton Oberek.