Skip to content

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.

pink-950#510424

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

Color codes for pink-950
Tailwind v4 token--color-pink-950
OKLCH (source value)oklch(28.4% 0.109 3.907)
HEX#510424
RGBrgb(81, 4, 36)
HSLhsl(335, 91%, 17%)
HWBhwb(335 2% 68%)
CMYK (naive, no ICC profile)cmyk(0%, 95%, 56%, 68%)
Decimal5,309,476
Tailwind v3 hex#500724
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on pink-9501.39:1FailFailFailFail0.0
White text on pink-95015.07:1PassPassPassPass−103.8
Pink-950 text on white15.07:1PassPassPassPass100.8
Pink-950 text on black1.39:1FailFailFailFail0.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)

  1. 5%
    #5a112f
  2. 15%
    #6b2a45
  3. 25%
    #7d435b
  4. 35%
    #8e5c71
  5. 45%
    #9f7587
  6. 55%
    #b18e9c
  7. 65%
    #c2a7b2
  8. 75%
    #d4c0c8
  9. 85%
    #e5d9de
  10. 95%
    #f6f2f4

Shades (mixed with black)

  1. 5%
    #4d0422
  2. 15%
    #45031f
  3. 25%
    #3d031b
  4. 35%
    #350317
  5. 45%
    #2d0214
  6. 55%
    #240210
  7. 65%
    #1c010d
  8. 75%
    #140109
  9. 85%
    #0c0105
  10. 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.

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

Nearest CSS named colors

Nearest CSS named colors
ColorHEXΔE OK
maroon#80000011.8
darkred#8b000014.1
indigo#4b008217.0

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
rose-950#4d02182.0
red-950#4608094.9
orange-950#4413066.2

Code snippets

Tailwind CSS
<div class="bg-pink-950 text-white">...</div>
<p class="text-pink-950 border-pink-950">...</p>
CSS
.element {
  color: var(--color-pink-950);
  background-color: oklch(28.4% 0.109 3.907);
  border-color: #510424;
  outline-color: rgb(81 4 36);
}
SwiftUI
import SwiftUI

extension Color {
  static let pink950 = Color(red: 0.318, green: 0.016, blue: 0.141)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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