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.
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
| Tailwind v4 token | --color-yellow-950 |
|---|---|
| OKLCH (source value) | oklch(28.6% 0.066 53.813) |
| HEX | #432004 |
| RGB | rgb(67, 32, 4) |
| HSL | hsl(27, 89%, 14%) |
| HWB | hwb(27 2% 74%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 52%, 94%, 74%) |
| Decimal | 4,399,108 |
| Tailwind v3 hex | #422006 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on yellow-950 | 1.44:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on yellow-950 | 14.51:1 | Pass | Pass | Pass | Pass | −104.0 |
| Yellow-950 text on white | 14.51:1 | Pass | Pass | Pass | Pass | 101.0 |
| Yellow-950 text on black | 1.44:1 | Fail | Fail | Fail | Fail | 0.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)
- 5%
#4c2b11 - 15%
#5f412a - 25%
#725843 - 35%
#856e5c - 45%
#988475 - 55%
#aa9b8e - 65%
#bdb1a7 - 75%
#d0c7c0 - 85%
#e3ded9 - 95%
#f6f4f2
Shades (mixed with black)
- 5%
#401e04 - 15%
#391b03 - 25%
#321803 - 35%
#2c1503 - 45%
#251202 - 55%
#1e0e02 - 65%
#170b01 - 75%
#110801 - 85%
#0a0501 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| maroon | #800000 | 13.4 |
| darkslategray | #2f4f4f | 15.3 |
| darkred | #8b0000 | 15.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| amber-950 | #461901 | 1.7 |
| orange-950 | #441306 | 3.2 |
| red-950 | #460809 | 5.3 |
Code snippets
<div class="bg-yellow-950 text-white">...</div>
<p class="text-yellow-950 border-yellow-950">...</p>.element {
color: var(--color-yellow-950);
background-color: oklch(28.6% 0.066 53.813);
border-color: #432004;
outline-color: rgb(67 32 4);
}import SwiftUI
extension Color {
static let yellow950 = Color(red: 0.263, green: 0.125, blue: 0.016)
}import androidx.compose.ui.graphics.Color
val Yellow950 = Color(0xFF432004)import 'package:flutter/material.dart';
const yellow950 = Color(0xFF432004);<!-- 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.