Tailwind CSS v4 default palette
Tailwind pink-800: #A3004C
In Tailwind CSS v4, pink-800 is defined as --color-pink-800: oklch(45.9% 0.187 3.815), which is #A3004C in hex and rgb(163, 0, 76): a medium-dark, vivid red. In Tailwind v3, pink-800 was #9D174D.
In OKLCH, pink-800 has a lightness of 45.9%, chroma 0.187 and hue 3.8°.
This OKLCH value lies outside sRGB. The hex #A3004C 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.5842 0.1053 0.2974).
In v3, pink-800 was #9D174D. The v4 value is ΔE OK 1.7 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-800
| Tailwind v4 token | --color-pink-800 |
|---|---|
| OKLCH (source value) | oklch(45.9% 0.187 3.815) |
| HEX | #A3004C |
| RGB | rgb(163, 0, 76) |
| HSL | hsl(332, 100%, 32%) |
| HWB | hwb(332 0% 36%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 100%, 53%, 36%) |
| Decimal | 10,682,444 |
| Display P3 | color(display-p3 0.5842 0.1053 0.2974) |
| Tailwind v3 hex | #9D174D |
| Utility classes | bg-pink-800, text-pink-800, border-pink-800 |
Tailwind pink scale
Contrast and accessibility
On pink-800, white text has a contrast ratio of 7.88:1 and passes AAA at any text size; black text reaches 2.66: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-800 | 2.66:1 | Fail | Fail | Fail | Fail | 19.1 |
| White text on pink-800 | 7.88:1 | Pass | Pass | Pass | Pass | −89.8 |
| Pink-800 text on white | 7.88:1 | Pass | Pass | Pass | Pass | 84.9 |
| Pink-800 text on black | 2.66:1 | Fail | Fail | Fail | Fail | −17.1 |
Tints and shades
Each step mixes var(--color-pink-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-pink-800), white 25%) in CSS.
Tints (mixed with white)
- 5%
#a80d55 - 15%
#b12667 - 25%
#ba4079 - 35%
#c3598b - 45%
#cc739d - 55%
#d68cae - 65%
#dfa6c0 - 75%
#e8bfd2 - 85%
#f1d9e4 - 95%
#faf2f6
Shades (mixed with black)
- 5%
#9b0048 - 15%
#8b0041 - 25%
#7a0039 - 35%
#6a0031 - 45%
#5a002a - 55%
#490022 - 65%
#39001b - 75%
#290013 - 85%
#18000b - 95%
#080004
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, pink-800's complementary color is #00695E (close to teal), its analogous colors are #901982 and #A70900, and its triadic partners are #496300 and #005CA0. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00695e |
| Analogous | −30°, +30° | #901982#a70900 |
| Triadic | +120°, +240° | #496300#005ca0 |
| Split-complementary | +150°, +210° | #006d2e#00657a |
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-800 is a warm color: its hue is 332° 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-800 text-white">...</div>
<p class="text-pink-800 border-pink-800">...</p>.element {
color: var(--color-pink-800);
background-color: oklch(45.9% 0.187 3.815);
border-color: #a3004c;
outline-color: rgb(163 0 76);
}import SwiftUI
extension Color {
static let pink800 = Color(red: 0.639, green: 0.000, blue: 0.298)
}import androidx.compose.ui.graphics.Color
val Pink800 = Color(0xFFA3004C)import 'package:flutter/material.dart';
const pink800 = Color(0xFFA3004C);<!-- res/values/colors.xml -->
<color name="pink_800">#A3004C</color>Frequently asked questions
- What is the hex code for Tailwind pink-800?
- In Tailwind CSS v4, pink-800 is oklch(45.9% 0.187 3.815), which converts to #A3004C (rgb(163, 0, 76)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #9D174D.
- What is the difference between pink-800 in Tailwind v3 and v4?
- v3 used the hex #9D174D; v4 redefined the palette in OKLCH as oklch(45.9% 0.187 3.815). In v3, pink-800 was #9D174D. The v4 value is ΔE OK 1.7 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use pink-800 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-pink-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on pink-800?
- White text on pink-800 has a contrast ratio of 7.88:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.66:1 and fails AA even for large text. In APCA terms that is Lc −89.8 for white and Lc 19.1 for black.
- Which CSS named color is closest to pink-800?
- The closest is brown (#A52A2A) at ΔE OK 7.4, followed by firebrick and darkred.
Last reviewed by Arielton Oberek.