Tailwind CSS v4 default palette
Tailwind pink-50: #FDF2F8
In Tailwind CSS v4, pink-50 is defined as --color-pink-50: oklch(97.1% 0.014 343.198), which is #FDF2F8 in hex and rgb(253, 242, 248): an off-white with a pink tint. In Tailwind v3, pink-50 was #FDF2F8.
In OKLCH, pink-50 has a lightness of 97.1%, chroma 0.014 and hue 343.2°.
The value fits inside sRGB, so the hex #FDF2F8 represents it without loss on any screen.
In v3, pink-50 was #FDF2F8. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
Tailwind pink is a cool, bluish pink between fuchsia and rose.
Color codes for pink-50
| Tailwind v4 token | --color-pink-50 |
|---|---|
| OKLCH (source value) | oklch(97.1% 0.014 343.198) |
| HEX | #FDF2F8 |
| RGB | rgb(253, 242, 248) |
| HSL | hsl(327, 73%, 97%) |
| HWB | hwb(327 95% 1%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 4%, 2%, 1%) |
| Decimal | 16,642,808 |
| Tailwind v3 hex | #FDF2F8 |
| Utility classes | bg-pink-50, text-pink-50, border-pink-50 |
Tailwind pink scale
Contrast and accessibility
On pink-50, black text has a contrast ratio of 19.23:1 and passes AAA at any text size; white text reaches 1.09: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 pink-50 | 19.23:1 | Pass | Pass | Pass | Pass | 100.0 |
| White text on pink-50 | 1.09:1 | Fail | Fail | Fail | Fail | 0.0 |
| Pink-50 text on white | 1.09:1 | Fail | Fail | Fail | Fail | 0.0 |
| Pink-50 text on black | 19.23:1 | Pass | Pass | Pass | Pass | −101.2 |
Tints and shades
Each step mixes var(--color-pink-50) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-pink-50), white 25%) in CSS.
Tints (mixed with white)
- 5%
#fdf3f8 - 15%
#fdf4f9 - 25%
#fef5fa - 35%
#fef7fa - 45%
#fef8fb - 55%
#fef9fc - 65%
#fefafd - 75%
#fffcfd - 85%
#fffdfe - 95%
#fffeff
Shades (mixed with black)
- 5%
#f0e6ec - 15%
#d7ced3 - 25%
#beb6ba - 35%
#a49da1 - 45%
#8b8588 - 55%
#726d70 - 65%
#595557 - 75%
#3f3d3e - 85%
#262425 - 95%
#0d0c0c
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, pink-50's complementary color is #EEF9F3 (close to whitesmoke), its analogous colors are #F9F3FC and #FFF2F3, and its triadic partners are #F7F6EB and #ECF8FC. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #eef9f3 |
| Analogous | −30°, +30° | #f9f3fc#fff2f3 |
| Triadic | +120°, +240° | #f7f6eb#ecf8fc |
| Split-complementary | +150°, +210° | #f2f8ee#ebf9f8 |
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 pink-50 is close to neutral: its OKLCH chroma is only 0.014, so its temperature comes from context. The faint 327° hue gives it a slightly cool cast.
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
| Color | HEX | ΔE OK |
|---|---|---|
| lavenderblush | #fff0f5 | 0.5 |
| whitesmoke | #f5f5f5 | 1.4 |
| ghostwhite | #f8f8ff | 1.6 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| rose-50 | #fff1f2 | 0.8 |
| red-50 | #fef2f2 | 0.8 |
| fuchsia-50 | #fdf4ff | 0.9 |
Code snippets
<div class="bg-pink-50 text-black">...</div>
<p class="text-pink-50 border-pink-50">...</p>.element {
color: var(--color-pink-50);
background-color: oklch(97.1% 0.014 343.198);
border-color: #fdf2f8;
outline-color: rgb(253 242 248);
}import SwiftUI
extension Color {
static let pink50 = Color(red: 0.992, green: 0.949, blue: 0.973)
}import androidx.compose.ui.graphics.Color
val Pink50 = Color(0xFFFDF2F8)import 'package:flutter/material.dart';
const pink50 = Color(0xFFFDF2F8);<!-- res/values/colors.xml -->
<color name="pink_50">#FDF2F8</color>Frequently asked questions
- What is the hex code for Tailwind pink-50?
- In Tailwind CSS v4, pink-50 is oklch(97.1% 0.014 343.198), which converts to #FDF2F8 (rgb(253, 242, 248)) in sRGB. In Tailwind v3 the same name was #FDF2F8.
- What is the difference between pink-50 in Tailwind v3 and v4?
- v3 used the hex #FDF2F8; v4 redefined the palette in OKLCH as oklch(97.1% 0.014 343.198). In v3, pink-50 was #FDF2F8. The v4 value is ΔE OK 0.0 away, below the point where most people can tell them apart.
- How do I use pink-50 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on pink-50?
- White text on pink-50 has a contrast ratio of 1.09:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.23:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 100.0 for black.
- Which CSS named color is closest to pink-50?
- The closest is lavenderblush (#FFF0F5) at ΔE OK 0.5, followed by whitesmoke and ghostwhite.
Last reviewed by Arielton Oberek.