Skip to content

Tailwind CSS v4 default palette

Tailwind rose-400: #FF637E

In Tailwind CSS v4, rose-400 is defined as --color-rose-400: oklch(71.2% 0.194 13.428), which is #FF637E in hex and rgb(255, 99, 126): a light, vivid pink. In Tailwind v3, rose-400 was #FB7185.

rose-400#FF637E

In OKLCH, rose-400 has a lightness of 71.2%, chroma 0.194 and hue 13.4°.

This OKLCH value lies outside sRGB. The hex #FF637E 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.9429 0.4308 0.5031).

In v3, rose-400 was #FB7185. The v4 value is ΔE OK 2.6 away; v4 is darker and 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-400

Color codes for rose-400
Tailwind v4 token--color-rose-400
OKLCH (source value)oklch(71.2% 0.194 13.428)
HEX#FF637E
RGBrgb(255, 99, 126)
HSLhsl(350, 100%, 69%)
HWBhwb(350 39% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 61%, 51%, 0%)
Decimal16,737,150
Display P3color(display-p3 0.9429 0.4308 0.5031)
Tailwind v3 hex#FB7185
Utility classesbg-rose-400, text-rose-400, border-rose-400

Tailwind rose scale

Contrast and accessibility

On rose-400, black text has a contrast ratio of 7.33:1 and passes AAA at any text size; white text reaches 2.86: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-4007.33:1PassPassPassPass50.1
White text on rose-4002.86:1FailFailFailFail−59.2
Rose-400 text on white2.86:1FailFailFailFail53.9
Rose-400 text on black7.33:1PassPassPassPass−47.9

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #ff6b84
  2. 15%
    #ff7a91
  3. 25%
    #ff8a9e
  4. 35%
    #ff9aab
  5. 45%
    #ffa9b8
  6. 55%
    #ffb9c5
  7. 65%
    #ffc8d2
  8. 75%
    #ffd8df
  9. 85%
    #ffe8ec
  10. 95%
    #fff7f9

Shades (mixed with black)

  1. 5%
    #f25e78
  2. 15%
    #d9546b
  3. 25%
    #bf4a5f
  4. 35%
    #a64052
  5. 45%
    #8c3645
  6. 55%
    #732d39
  7. 65%
    #59232c
  8. 75%
    #401920
  9. 85%
    #260f13
  10. 95%
    #0d0506

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, rose-400's complementary color is #00BDBB (close to lightseagreen), its analogous colors are #F168C1 and #FF7025, and its triadic partners are #6DBA1B and #45A4FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#00bdbb
Analogous−30°, +30°#f168c1#ff7025
Triadic+120°, +240°#6dba1b#45a4ff
Split-complementary+150°, +210°#00c382#00b5e8

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-400 is a warm color: its hue is 350° 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
lightcoral#f080806.2
salmon#fa80726.5
tomato#ff63476.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-400#ff64673.1
pink-400#fb64b68.2
rose-500#ff20568.6

Code snippets

Tailwind CSS
<div class="bg-rose-400 text-black">...</div>
<p class="text-rose-400 border-rose-400">...</p>
CSS
.element {
  color: var(--color-rose-400);
  background-color: oklch(71.2% 0.194 13.428);
  border-color: #ff637e;
  outline-color: rgb(255 99 126);
}
SwiftUI
import SwiftUI

extension Color {
  static let rose400 = Color(red: 1.000, green: 0.388, blue: 0.494)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const rose400 = Color(0xFFFF637E);
Android XML
<!-- res/values/colors.xml -->
<color name="rose_400">#FF637E</color>

Frequently asked questions

What is the hex code for Tailwind rose-400?
In Tailwind CSS v4, rose-400 is oklch(71.2% 0.194 13.428), which converts to #FF637E (rgb(255, 99, 126)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #FB7185.
What is the difference between rose-400 in Tailwind v3 and v4?
v3 used the hex #FB7185; v4 redefined the palette in OKLCH as oklch(71.2% 0.194 13.428). In v3, rose-400 was #FB7185. The v4 value is ΔE OK 2.6 away; v4 is darker and more saturated.
How do I use rose-400 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-rose-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on rose-400?
White text on rose-400 has a contrast ratio of 2.86:1, which fails AA even for large text under WCAG 2.2. Black text reaches 7.33:1 and passes both AA and AAA. In APCA terms that is Lc −59.2 for white and Lc 50.1 for black.
Which CSS named color is closest to rose-400?
The closest is lightcoral (#F08080) at ΔE OK 6.2, followed by salmon and tomato.

Last reviewed by Arielton Oberek.