Tailwind CSS v4 default palette
Tailwind pink-400: #FB64B6
In Tailwind CSS v4, pink-400 is defined as --color-pink-400: oklch(71.8% 0.202 349.761), which is #FB64B6 in hex and rgb(251, 100, 182): a light, vivid pink. In Tailwind v3, pink-400 was #F472B6.
In OKLCH, pink-400 has a lightness of 71.8%, chroma 0.202 and hue 349.8°.
The value fits inside sRGB, so the hex #FB64B6 represents it without loss on any screen.
In v3, pink-400 was #F472B6. The v4 value is ΔE OK 2.8 away; v4 is darker and more saturated.
Tailwind pink is a cool, bluish pink between fuchsia and rose.
Color codes for pink-400
| Tailwind v4 token | --color-pink-400 |
|---|---|
| OKLCH (source value) | oklch(71.8% 0.202 349.761) |
| HEX | #FB64B6 |
| RGB | rgb(251, 100, 182) |
| HSL | hsl(327, 95%, 69%) |
| HWB | hwb(327 39% 2%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 60%, 27%, 2%) |
| Decimal | 16,475,318 |
| Tailwind v3 hex | #F472B6 |
| Utility classes | bg-pink-400, text-pink-400, border-pink-400 |
Tailwind pink scale
Contrast and accessibility
On pink-400, black text has a contrast ratio of 7.60:1 and passes AAA at any text size; white text reaches 2.76: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-400 | 7.60:1 | Pass | Pass | Pass | Pass | 51.5 |
| White text on pink-400 | 2.76:1 | Fail | Fail | Fail | Fail | −57.8 |
| Pink-400 text on white | 2.76:1 | Fail | Fail | Fail | Fail | 52.6 |
| Pink-400 text on black | 7.60:1 | Pass | Pass | Pass | Pass | −49.3 |
Tints and shades
Each step mixes var(--color-pink-400) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-pink-400), white 25%) in CSS.
Tints (mixed with white)
- 5%
#fb6cba - 15%
#fc7bc1 - 25%
#fc8bc8 - 35%
#fc9ad0 - 45%
#fdaad7 - 55%
#fdb9de - 65%
#fec9e5 - 75%
#fed8ed - 85%
#fee8f4 - 95%
#fff7fb
Shades (mixed with black)
- 5%
#ee5fad - 15%
#d5559b - 25%
#bc4b89 - 35%
#a34176 - 45%
#8a3764 - 55%
#712d52 - 65%
#582340 - 75%
#3f192e - 85%
#260f1b - 95%
#0d0509
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, pink-400's complementary color is #00C493 (close to mediumseagreen), its analogous colors are #D973F1 and #FF626E, and its triadic partners are #ACAC00 and #00B5F6. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00c493 |
| Analogous | −30°, +30° | #d973f1#ff626e |
| Triadic | +120°, +240° | #acac00#00b5f6 |
| Split-complementary | +150°, +210° | #53c034#00bdc6 |
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-400 sits on the boundary: its hue of 327° on the HSL wheel is a magenta, which reads warm next to blues and cool next to reds and oranges.
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.
Code snippets
<div class="bg-pink-400 text-black">...</div>
<p class="text-pink-400 border-pink-400">...</p>.element {
color: var(--color-pink-400);
background-color: oklch(71.8% 0.202 349.761);
border-color: #fb64b6;
outline-color: rgb(251 100 182);
}import SwiftUI
extension Color {
static let pink400 = Color(red: 0.984, green: 0.392, blue: 0.714)
}import androidx.compose.ui.graphics.Color
val Pink400 = Color(0xFFFB64B6)import 'package:flutter/material.dart';
const pink400 = Color(0xFFFB64B6);<!-- res/values/colors.xml -->
<color name="pink_400">#FB64B6</color>Frequently asked questions
- What is the hex code for Tailwind pink-400?
- In Tailwind CSS v4, pink-400 is oklch(71.8% 0.202 349.761), which converts to #FB64B6 (rgb(251, 100, 182)) in sRGB. In Tailwind v3 the same name was #F472B6.
- What is the difference between pink-400 in Tailwind v3 and v4?
- v3 used the hex #F472B6; v4 redefined the palette in OKLCH as oklch(71.8% 0.202 349.761). In v3, pink-400 was #F472B6. The v4 value is ΔE OK 2.8 away; v4 is darker and more saturated.
- How do I use pink-400 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-400). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on pink-400?
- White text on pink-400 has a contrast ratio of 2.76:1, which fails AA even for large text under WCAG 2.2. Black text reaches 7.60:1 and passes both AA and AAA. In APCA terms that is Lc −57.8 for white and Lc 51.5 for black.
- Which CSS named color is closest to pink-400?
- The closest is hotpink (#FF69B4) at ΔE OK 1.4, followed by orchid and palevioletred.
Last reviewed by Arielton Oberek.