Skip to content

Tailwind CSS v4 default palette

Tailwind rose-300: #FFA1AD

In Tailwind CSS v4, rose-300 is defined as --color-rose-300: oklch(81% 0.117 11.638), which is #FFA1AD in hex and rgb(255, 161, 173): a very light, moderately saturated pink. In Tailwind v3, rose-300 was #FDA4AF.

rose-300#FFA1AD

In OKLCH, rose-300 has a lightness of 81.0%, chroma 0.117 and hue 11.6°.

This OKLCH value lies outside sRGB. The hex #FFA1AD 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.9602 0.6477 0.6837).

In v3, rose-300 was #FDA4AF. The v4 value is ΔE OK 1.1 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-300

Color codes for rose-300
Tailwind v4 token--color-rose-300
OKLCH (source value)oklch(81% 0.117 11.638)
HEX#FFA1AD
RGBrgb(255, 161, 173)
HSLhsl(352, 100%, 82%)
HWBhwb(352 63% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 37%, 32%, 0%)
Decimal16,753,069
Display P3color(display-p3 0.9602 0.6477 0.6837)
Tailwind v3 hex#FDA4AF
Utility classesbg-rose-300, text-rose-300, border-rose-300

Tailwind rose scale

Contrast and accessibility

On rose-300, black text has a contrast ratio of 10.95:1 and passes AAA at any text size; white text reaches 1.91: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-30010.95:1PassPassPassPass67.5
White text on rose-3001.91:1FailFailFailFail−40.7
Rose-300 text on white1.91:1FailFailFailFail36.4
Rose-300 text on black10.95:1PassPassPassPass−66.0

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #ffa6b1
  2. 15%
    #ffafb9
  3. 25%
    #ffb9c2
  4. 35%
    #ffc2ca
  5. 45%
    #ffcbd2
  6. 55%
    #ffd5da
  7. 65%
    #ffdee2
  8. 75%
    #ffe8eb
  9. 85%
    #fff1f3
  10. 95%
    #fffafb

Shades (mixed with black)

  1. 5%
    #f299a4
  2. 15%
    #d98993
  3. 25%
    #bf7982
  4. 35%
    #a66970
  5. 45%
    #8c595f
  6. 55%
    #73484e
  7. 65%
    #59383d
  8. 75%
    #40282b
  9. 85%
    #26181a
  10. 95%
    #0d0809

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, rose-300's complementary color is #50D9D4 (close to turquoise), its analogous colors are #F5A2D7 and #FFA785, and its triadic partners are #A5D180 and #87C6FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#50d9d4
Analogous−30°, +30°#f5a2d7#ffa785
Triadic+120°, +240°#a5d180#87c6ff
Split-complementary+150°, +210°#75d9a9#5cd2f7

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-300 is a warm color: its hue is 352° 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
lightpink#ffb6c14.9
lightsalmon#ffa07a6.7
pink#ffc0cb7.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
red-300#ffa2a21.6
pink-300#fda5d55.4
red-200#ffc9c99.4

Code snippets

Tailwind CSS
<div class="bg-rose-300 text-black">...</div>
<p class="text-rose-300 border-rose-300">...</p>
CSS
.element {
  color: var(--color-rose-300);
  background-color: oklch(81% 0.117 11.638);
  border-color: #ffa1ad;
  outline-color: rgb(255 161 173);
}
SwiftUI
import SwiftUI

extension Color {
  static let rose300 = Color(red: 1.000, green: 0.631, blue: 0.678)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const rose300 = Color(0xFFFFA1AD);
Android XML
<!-- res/values/colors.xml -->
<color name="rose_300">#FFA1AD</color>

Frequently asked questions

What is the hex code for Tailwind rose-300?
In Tailwind CSS v4, rose-300 is oklch(81% 0.117 11.638), which converts to #FFA1AD (rgb(255, 161, 173)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #FDA4AF.
What is the difference between rose-300 in Tailwind v3 and v4?
v3 used the hex #FDA4AF; v4 redefined the palette in OKLCH as oklch(81% 0.117 11.638). In v3, rose-300 was #FDA4AF. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use rose-300 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-rose-300). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on rose-300?
White text on rose-300 has a contrast ratio of 1.91:1, which fails AA even for large text under WCAG 2.2. Black text reaches 10.95:1 and passes both AA and AAA. In APCA terms that is Lc −40.7 for white and Lc 67.5 for black.
Which CSS named color is closest to rose-300?
The closest is lightpink (#FFB6C1) at ΔE OK 4.9, followed by lightsalmon and pink.

Last reviewed by Arielton Oberek.