Skip to content

Tailwind CSS v4 default palette

Tailwind yellow-950: #432004

In Tailwind CSS v4, yellow-950 is defined as --color-yellow-950: oklch(28.6% 0.066 53.813), which is #432004 in hex and rgb(67, 32, 4): a very dark, muted brown. In Tailwind v3, yellow-950 was #422006.

yellow-950#432004

In OKLCH, yellow-950 has a lightness of 28.6%, chroma 0.066 and hue 53.8°.

The value fits inside sRGB, so the hex #432004 represents it without loss on any screen.

In v3, yellow-950 was #422006. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.

Tailwind yellow has very high lightness through 400, so only the 700 and darker shades are suitable for text on white.

Color codes for yellow-950

Color codes for yellow-950
Tailwind v4 token--color-yellow-950
OKLCH (source value)oklch(28.6% 0.066 53.813)
HEX#432004
RGBrgb(67, 32, 4)
HSLhsl(27, 89%, 14%)
HWBhwb(27 2% 74%)
CMYK (naive, no ICC profile)cmyk(0%, 52%, 94%, 74%)
Decimal4,399,108
Tailwind v3 hex#422006
Utility classesbg-yellow-950, text-yellow-950, border-yellow-950

Tailwind yellow scale

Contrast and accessibility

On yellow-950, white text has a contrast ratio of 14.51:1 and passes AAA at any text size; black text reaches 1.44: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 yellow-9501.44:1FailFailFailFail0.0
White text on yellow-95014.51:1PassPassPassPass−104.0
Yellow-950 text on white14.51:1PassPassPassPass101.0
Yellow-950 text on black1.44:1FailFailFailFail0.0

Tints and shades

Each step mixes var(--color-yellow-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-yellow-950), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #4c2b11
  2. 15%
    #5f412a
  3. 25%
    #725843
  4. 35%
    #856e5c
  5. 45%
    #988475
  6. 55%
    #aa9b8e
  7. 65%
    #bdb1a7
  8. 75%
    #d0c7c0
  9. 85%
    #e3ded9
  10. 95%
    #f6f4f2

Shades (mixed with black)

  1. 5%
    #401e04
  2. 15%
    #391b03
  3. 25%
    #321803
  4. 35%
    #2c1503
  5. 45%
    #251202
  6. 55%
    #1e0e02
  7. 65%
    #170b01
  8. 75%
    #110801
  9. 85%
    #0a0501
  10. 95%
    #030200

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, yellow-950's complementary color is #002F46 (close to midnightblue), its analogous colors are #461B1A and #3A2700, and its triadic partners are #003428 and #2C2348. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#002f46
Analogous−30°, +30°#461b1a#3a2700
Triadic+120°, +240°#003428#2c2348
Split-complementary+150°, +210°#003339#19294b

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 yellow-950 is a warm color: its hue is 27° 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#80000013.4
darkslategray#2f4f4f15.3
darkred#8b000015.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
amber-950#4619011.7
orange-950#4413063.2
red-950#4608095.3

Code snippets

Tailwind CSS
<div class="bg-yellow-950 text-white">...</div>
<p class="text-yellow-950 border-yellow-950">...</p>
CSS
.element {
  color: var(--color-yellow-950);
  background-color: oklch(28.6% 0.066 53.813);
  border-color: #432004;
  outline-color: rgb(67 32 4);
}
SwiftUI
import SwiftUI

extension Color {
  static let yellow950 = Color(red: 0.263, green: 0.125, blue: 0.016)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const yellow950 = Color(0xFF432004);
Android XML
<!-- res/values/colors.xml -->
<color name="yellow_950">#432004</color>

Frequently asked questions

What is the hex code for Tailwind yellow-950?
In Tailwind CSS v4, yellow-950 is oklch(28.6% 0.066 53.813), which converts to #432004 (rgb(67, 32, 4)) in sRGB. In Tailwind v3 the same name was #422006.
What is the difference between yellow-950 in Tailwind v3 and v4?
v3 used the hex #422006; v4 redefined the palette in OKLCH as oklch(28.6% 0.066 53.813). In v3, yellow-950 was #422006. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.
How do I use yellow-950 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-yellow-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on yellow-950?
White text on yellow-950 has a contrast ratio of 14.51:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.44:1 and fails AA even for large text. In APCA terms that is Lc −104.0 for white and Lc 0.0 for black.
Which CSS named color is closest to yellow-950?
The closest is maroon (#800000) at ΔE OK 13.4, followed by darkslategray and darkred.

Last reviewed by Arielton Oberek.