Tailwind CSS v4 default palette
Tailwind yellow-800: #894B00
In Tailwind CSS v4, yellow-800 is defined as --color-yellow-800: oklch(47.6% 0.114 61.907), which is #894B00 in hex and rgb(137, 75, 0): a medium-dark, moderately saturated brown. In Tailwind v3, yellow-800 was #854D0E.
In OKLCH, yellow-800 has a lightness of 47.6%, chroma 0.114 and hue 61.9°.
This OKLCH value lies outside sRGB. The hex #894B00 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.5032 0.3048 0.0755).
In v3, yellow-800 was #854D0E. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
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-800
| Tailwind v4 token | --color-yellow-800 |
|---|---|
| OKLCH (source value) | oklch(47.6% 0.114 61.907) |
| HEX | #894B00 |
| RGB | rgb(137, 75, 0) |
| HSL | hsl(33, 100%, 27%) |
| HWB | hwb(33 0% 46%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 45%, 100%, 46%) |
| Decimal | 8,997,632 |
| Display P3 | color(display-p3 0.5032 0.3048 0.0755) |
| Tailwind v3 hex | #854D0E |
| Utility classes | bg-yellow-800, text-yellow-800, border-yellow-800 |
Tailwind yellow scale
Contrast and accessibility
On yellow-800, white text has a contrast ratio of 6.84:1 and passes AA for normal text; black text reaches 3.07: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-800 | 3.07:1 | Fail | Pass | Fail | Fail | 20.9 |
| White text on yellow-800 | 6.84:1 | Pass | Pass | Fail | Pass | −88.2 |
| Yellow-800 text on white | 6.84:1 | Pass | Pass | Fail | Pass | 83.2 |
| Yellow-800 text on black | 3.07:1 | Fail | Pass | Fail | Fail | −18.8 |
Tints and shades
Each step mixes var(--color-yellow-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-yellow-800), white 25%) in CSS.
Tints (mixed with white)
- 5%
#8f540d - 15%
#9b6626 - 25%
#a77840 - 35%
#b28a59 - 45%
#be9c73 - 55%
#caae8c - 65%
#d6c0a6 - 75%
#e2d2bf - 85%
#ede4d9 - 95%
#f9f6f2
Shades (mixed with black)
- 5%
#824700 - 15%
#744000 - 25%
#673800 - 35%
#593100 - 45%
#4b2900 - 55%
#3e2200 - 65%
#301a00 - 75%
#221300 - 85%
#150b00 - 95%
#070400
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, yellow-800's complementary color is #006296 (close to teal), its analogous colors are #924031 and #745900, and its triadic partners are #006F61 and #694B91. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #006296 |
| Analogous | −30°, +30° | #924031#745900 |
| Triadic | +120°, +240° | #006f61#694b91 |
| Split-complementary | +150°, +210° | #006b7e#47569c |
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-800 is a warm color: its hue is 33° 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 |
|---|---|---|
| saddlebrown | #8b4513 | 2.2 |
| sienna | #a0522d | 6.1 |
| brown | #a52a2a | 9.6 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| amber-800 | #973c00 | 4.1 |
| yellow-900 | #733e0a | 5.9 |
| amber-900 | #7b3306 | 7.0 |
Code snippets
<div class="bg-yellow-800 text-white">...</div>
<p class="text-yellow-800 border-yellow-800">...</p>.element {
color: var(--color-yellow-800);
background-color: oklch(47.6% 0.114 61.907);
border-color: #894b00;
outline-color: rgb(137 75 0);
}import SwiftUI
extension Color {
static let yellow800 = Color(red: 0.537, green: 0.294, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Yellow800 = Color(0xFF894B00)import 'package:flutter/material.dart';
const yellow800 = Color(0xFF894B00);<!-- res/values/colors.xml -->
<color name="yellow_800">#894B00</color>Frequently asked questions
- What is the hex code for Tailwind yellow-800?
- In Tailwind CSS v4, yellow-800 is oklch(47.6% 0.114 61.907), which converts to #894B00 (rgb(137, 75, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #854D0E.
- What is the difference between yellow-800 in Tailwind v3 and v4?
- v3 used the hex #854D0E; v4 redefined the palette in OKLCH as oklch(47.6% 0.114 61.907). In v3, yellow-800 was #854D0E. The v4 value is ΔE OK 1.1 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use yellow-800 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-yellow-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on yellow-800?
- White text on yellow-800 has a contrast ratio of 6.84:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 3.07:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −88.2 for white and Lc 20.9 for black.
- Which CSS named color is closest to yellow-800?
- The closest is saddlebrown (#8B4513) at ΔE OK 2.2, followed by sienna and brown.
Last reviewed by Arielton Oberek.