Tailwind CSS v4 default palette
Tailwind pink-950: #510424
In Tailwind CSS v4, pink-950 is defined as --color-pink-950: oklch(28.4% 0.109 3.907), which is #510424 in hex and rgb(81, 4, 36): a very dark, moderately saturated red. In Tailwind v3, pink-950 was #500724.
In OKLCH, pink-950 has a lightness of 28.4%, chroma 0.109 and hue 3.9°.
The value fits inside sRGB, so the hex #510424 represents it without loss on any screen.
In v3, pink-950 was #500724. The v4 value is ΔE OK 0.4 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-950
| Tailwind v4 token | --color-pink-950 |
|---|---|
| OKLCH (source value) | oklch(28.4% 0.109 3.907) |
| HEX | #510424 |
| RGB | rgb(81, 4, 36) |
| HSL | hsl(335, 91%, 17%) |
| HWB | hwb(335 2% 68%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 95%, 56%, 68%) |
| Decimal | 5,309,476 |
| Tailwind v3 hex | #500724 |
| Utility classes | bg-pink-950, text-pink-950, border-pink-950 |
Tailwind pink scale
Contrast and accessibility
On pink-950, white text has a contrast ratio of 15.07:1 and passes AAA at any text size; black text reaches 1.39: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-950 | 1.39:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on pink-950 | 15.07:1 | Pass | Pass | Pass | Pass | −103.8 |
| Pink-950 text on white | 15.07:1 | Pass | Pass | Pass | Pass | 100.8 |
| Pink-950 text on black | 1.39:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-pink-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-pink-950), white 25%) in CSS.
Tints (mixed with white)
- 5%
#5a112f - 15%
#6b2a45 - 25%
#7d435b - 35%
#8e5c71 - 45%
#9f7587 - 55%
#b18e9c - 65%
#c2a7b2 - 75%
#d4c0c8 - 85%
#e5d9de - 95%
#f6f2f4
Shades (mixed with black)
- 5%
#4d0422 - 15%
#45031f - 25%
#3d031b - 35%
#350317 - 45%
#2d0214 - 55%
#240210 - 65%
#1c010d - 75%
#140109 - 85%
#0c0105 - 95%
#040002
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, pink-950's complementary color is #00342E (close to darkslategray), its analogous colors are #470C3F and #530700, and its triadic partners are #213000 and #002C57. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00342e |
| Analogous | −30°, +30° | #470c3f#530700 |
| Triadic | +120°, +240° | #213000#002c57 |
| Split-complementary | +150°, +210° | #00370f#00323f |
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-950 is a warm color: its hue is 335° 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.
Code snippets
<div class="bg-pink-950 text-white">...</div>
<p class="text-pink-950 border-pink-950">...</p>.element {
color: var(--color-pink-950);
background-color: oklch(28.4% 0.109 3.907);
border-color: #510424;
outline-color: rgb(81 4 36);
}import SwiftUI
extension Color {
static let pink950 = Color(red: 0.318, green: 0.016, blue: 0.141)
}import androidx.compose.ui.graphics.Color
val Pink950 = Color(0xFF510424)import 'package:flutter/material.dart';
const pink950 = Color(0xFF510424);<!-- res/values/colors.xml -->
<color name="pink_950">#510424</color>Frequently asked questions
- What is the hex code for Tailwind pink-950?
- In Tailwind CSS v4, pink-950 is oklch(28.4% 0.109 3.907), which converts to #510424 (rgb(81, 4, 36)) in sRGB. In Tailwind v3 the same name was #500724.
- What is the difference between pink-950 in Tailwind v3 and v4?
- v3 used the hex #500724; v4 redefined the palette in OKLCH as oklch(28.4% 0.109 3.907). In v3, pink-950 was #500724. The v4 value is ΔE OK 0.4 away, below the point where most people can tell them apart.
- How do I use pink-950 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on pink-950?
- White text on pink-950 has a contrast ratio of 15.07:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.39:1 and fails AA even for large text. In APCA terms that is Lc −103.8 for white and Lc 0.0 for black.
- Which CSS named color is closest to pink-950?
- The closest is maroon (#800000) at ΔE OK 11.8, followed by darkred and indigo.
Last reviewed by Arielton Oberek.