Tailwind CSS v4 default palette
Tailwind pink-900: #861043
In Tailwind CSS v4, pink-900 is defined as --color-pink-900: oklch(40.8% 0.153 2.432), which is #861043 in hex and rgb(134, 16, 67): a dark, vivid red. In Tailwind v3, pink-900 was #831843.
In OKLCH, pink-900 has a lightness of 40.8%, chroma 0.153 and hue 2.4°.
The value fits inside sRGB, so the hex #861043 represents it without loss on any screen.
In v3, pink-900 was #831843. The v4 value is ΔE OK 0.9 away, below the point where most people can tell them apart; v4 is more saturated.
Tailwind pink is a cool, bluish pink between fuchsia and rose.
Color codes for pink-900
| Tailwind v4 token | --color-pink-900 |
|---|---|
| OKLCH (source value) | oklch(40.8% 0.153 2.432) |
| HEX | #861043 |
| RGB | rgb(134, 16, 67) |
| HSL | hsl(334, 79%, 29%) |
| HWB | hwb(334 6% 47%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 88%, 50%, 47%) |
| Decimal | 8,785,987 |
| Tailwind v3 hex | #831843 |
| Utility classes | bg-pink-900, text-pink-900, border-pink-900 |
Tailwind pink scale
Contrast and accessibility
On pink-900, white text has a contrast ratio of 9.68:1 and passes AAA at any text size; black text reaches 2.16: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-900 | 2.16:1 | Fail | Fail | Fail | Fail | 13.2 |
| White text on pink-900 | 9.68:1 | Pass | Pass | Pass | Pass | −95.2 |
| Pink-900 text on white | 9.68:1 | Pass | Pass | Pass | Pass | 90.8 |
| Pink-900 text on black | 2.16:1 | Fail | Fail | Fail | Fail | −11.5 |
Tints and shades
Each step mixes var(--color-pink-900) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-pink-900), white 25%) in CSS.
Tints (mixed with white)
- 5%
#8c1c4c - 15%
#98345f - 25%
#a44c72 - 35%
#b06485 - 45%
#bc7c98 - 55%
#c993aa - 65%
#d5abbd - 75%
#e1c3d0 - 85%
#eddbe3 - 95%
#f9f3f6
Shades (mixed with black)
- 5%
#7f0f40 - 15%
#720e39 - 25%
#650c32 - 35%
#570a2c - 45%
#4a0925 - 55%
#3c071e - 65%
#2f0617 - 75%
#220411 - 85%
#14020a - 95%
#070103
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, pink-900's complementary color is #00594E (close to darkslategray), its analogous colors are #761D6D and #8A1600, and its triadic partners are #3F5300 and #004E87. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00594e |
| Analogous | −30°, +30° | #761d6d#8a1600 |
| Triadic | +120°, +240° | #3f5300#004e87 |
| Split-complementary | +150°, +210° | #005d20#005667 |
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-900 is a warm color: its hue is 334° 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-900 text-white">...</div>
<p class="text-pink-900 border-pink-900">...</p>.element {
color: var(--color-pink-900);
background-color: oklch(40.8% 0.153 2.432);
border-color: #861043;
outline-color: rgb(134 16 67);
}import SwiftUI
extension Color {
static let pink900 = Color(red: 0.525, green: 0.063, blue: 0.263)
}import androidx.compose.ui.graphics.Color
val Pink900 = Color(0xFF861043)import 'package:flutter/material.dart';
const pink900 = Color(0xFF861043);<!-- res/values/colors.xml -->
<color name="pink_900">#861043</color>Frequently asked questions
- What is the hex code for Tailwind pink-900?
- In Tailwind CSS v4, pink-900 is oklch(40.8% 0.153 2.432), which converts to #861043 (rgb(134, 16, 67)) in sRGB. In Tailwind v3 the same name was #831843.
- What is the difference between pink-900 in Tailwind v3 and v4?
- v3 used the hex #831843; v4 redefined the palette in OKLCH as oklch(40.8% 0.153 2.432). In v3, pink-900 was #831843. The v4 value is ΔE OK 0.9 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use pink-900 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on pink-900?
- White text on pink-900 has a contrast ratio of 9.68:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.16:1 and fails AA even for large text. In APCA terms that is Lc −95.2 for white and Lc 13.2 for black.
- Which CSS named color is closest to pink-900?
- The closest is darkred (#8B0000) at ΔE OK 7.5, followed by maroon and brown.
Last reviewed by Arielton Oberek.