Skip to content

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.

pink-800#A3004C

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

Color codes for pink-800
Tailwind v4 token--color-pink-800
OKLCH (source value)oklch(45.9% 0.187 3.815)
HEX#A3004C
RGBrgb(163, 0, 76)
HSLhsl(332, 100%, 32%)
HWBhwb(332 0% 36%)
CMYK (naive, no ICC profile)cmyk(0%, 100%, 53%, 36%)
Decimal10,682,444
Display P3color(display-p3 0.5842 0.1053 0.2974)
Tailwind v3 hex#9D174D
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on pink-8002.66:1FailFailFailFail19.1
White text on pink-8007.88:1PassPassPassPass−89.8
Pink-800 text on white7.88:1PassPassPassPass84.9
Pink-800 text on black2.66:1FailFailFailFail−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)

  1. 5%
    #a80d55
  2. 15%
    #b12667
  3. 25%
    #ba4079
  4. 35%
    #c3598b
  5. 45%
    #cc739d
  6. 55%
    #d68cae
  7. 65%
    #dfa6c0
  8. 75%
    #e8bfd2
  9. 85%
    #f1d9e4
  10. 95%
    #faf2f6

Shades (mixed with black)

  1. 5%
    #9b0048
  2. 15%
    #8b0041
  3. 25%
    #7a0039
  4. 35%
    #6a0031
  5. 45%
    #5a002a
  6. 55%
    #490022
  7. 65%
    #39001b
  8. 75%
    #290013
  9. 85%
    #18000b
  10. 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.

Color harmonies
HarmonyRotationColor
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.

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
brown#a52a2a7.4
firebrick#b222228.3
darkred#8b000010.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
rose-800#a500363.3
rose-900#8b08366.0
pink-900#8610436.1

Code snippets

Tailwind CSS
<div class="bg-pink-800 text-white">...</div>
<p class="text-pink-800 border-pink-800">...</p>
CSS
.element {
  color: var(--color-pink-800);
  background-color: oklch(45.9% 0.187 3.815);
  border-color: #a3004c;
  outline-color: rgb(163 0 76);
}
SwiftUI
import SwiftUI

extension Color {
  static let pink800 = Color(red: 0.639, green: 0.000, blue: 0.298)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Pink800 = Color(0xFFA3004C)
Flutter
import 'package:flutter/material.dart';

const pink800 = Color(0xFFA3004C);
Android XML
<!-- 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.