Skip to content

Tailwind CSS v4 default palette

Tailwind rose-500: #FF2056

In Tailwind CSS v4, rose-500 is defined as --color-rose-500: oklch(64.5% 0.246 16.439), which is #FF2056 in hex and rgb(255, 32, 86): a medium, vivid pink. In Tailwind v3, rose-500 was #F43F5E.

rose-500#FF2056

In OKLCH, rose-500 has a lightness of 64.5%, chroma 0.246 and hue 16.4°.

This OKLCH value lies outside sRGB. The hex #FF2056 is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.9218 0.2407 0.3557).

In v3, rose-500 was #F43F5E. The v4 value is ΔE OK 3.1 away; 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-500

Color codes for rose-500
Tailwind v4 token--color-rose-500
OKLCH (source value)oklch(64.5% 0.246 16.439)
HEX#FF2056
RGBrgb(255, 32, 86)
HSLhsl(345, 100%, 56%)
HWBhwb(345 13% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 87%, 66%, 0%)
Decimal16,719,958
Display P3color(display-p3 0.9218 0.2407 0.3557)
Tailwind v3 hex#F43F5E
Utility classesbg-rose-500, text-rose-500, border-rose-500

Tailwind rose scale

Contrast and accessibility

On rose-500, black text has a contrast ratio of 5.59:1 and passes AA for normal text; white text reaches 3.75: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-5005.59:1PassPassFailPass41.2
White text on rose-5003.75:1FailPassFailFail−68.3
Rose-500 text on white3.75:1FailPassFailFail62.8
Rose-500 text on black5.59:1PassPassFailPass−38.8

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #ff2b5e
  2. 15%
    #ff416f
  3. 25%
    #ff5880
  4. 35%
    #ff6e91
  5. 45%
    #ff84a2
  6. 55%
    #ff9bb3
  7. 65%
    #ffb1c4
  8. 75%
    #ffc7d5
  9. 85%
    #ffdee6
  10. 95%
    #fff4f7

Shades (mixed with black)

  1. 5%
    #f21e52
  2. 15%
    #d91b49
  3. 25%
    #bf1841
  4. 35%
    #a61538
  5. 45%
    #8c122f
  6. 55%
    #730e27
  7. 65%
    #590b1e
  8. 75%
    #400816
  9. 85%
    #26050d
  10. 95%
    #0d0204

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, rose-500's complementary color is #00A5A8 (close to lightseagreen), its analogous colors are #ED2FAB and #EC5700, and its triadic partners are #40A900 and #1589FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00a5a8
Analogous−30°, +30°#ed2fab#ec5700
Triadic+120°, +240°#40a900#1589ff
Split-complementary+150°, +210°#00aa78#009dd1

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-500 is a warm color: its hue is 345° 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
red#ff00006.0
crimson#dc143c7.9
orangered#ff45008.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-500#fb2c363.9
rose-600#ec003f6.0
red-600#e7000b8.2

Code snippets

Tailwind CSS
<div class="bg-rose-500 text-black">...</div>
<p class="text-rose-500 border-rose-500">...</p>
CSS
.element {
  color: var(--color-rose-500);
  background-color: oklch(64.5% 0.246 16.439);
  border-color: #ff2056;
  outline-color: rgb(255 32 86);
}
SwiftUI
import SwiftUI

extension Color {
  static let rose500 = Color(red: 1.000, green: 0.125, blue: 0.337)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const rose500 = Color(0xFFFF2056);
Android XML
<!-- res/values/colors.xml -->
<color name="rose_500">#FF2056</color>

Frequently asked questions

What is the hex code for Tailwind rose-500?
In Tailwind CSS v4, rose-500 is oklch(64.5% 0.246 16.439), which converts to #FF2056 (rgb(255, 32, 86)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #F43F5E.
What is the difference between rose-500 in Tailwind v3 and v4?
v3 used the hex #F43F5E; v4 redefined the palette in OKLCH as oklch(64.5% 0.246 16.439). In v3, rose-500 was #F43F5E. The v4 value is ΔE OK 3.1 away; v4 is more saturated.
How do I use rose-500 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-rose-500). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on rose-500?
White text on rose-500 has a contrast ratio of 3.75:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 5.59:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −68.3 for white and Lc 41.2 for black.
Which CSS named color is closest to rose-500?
The closest is red (#FF0000) at ΔE OK 6.0, followed by crimson and orangered.

Last reviewed by Arielton Oberek.