Skip to content

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.

yellow-800#894B00

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

Color codes for yellow-800
Tailwind v4 token--color-yellow-800
OKLCH (source value)oklch(47.6% 0.114 61.907)
HEX#894B00
RGBrgb(137, 75, 0)
HSLhsl(33, 100%, 27%)
HWBhwb(33 0% 46%)
CMYK (naive, no ICC profile)cmyk(0%, 45%, 100%, 46%)
Decimal8,997,632
Display P3color(display-p3 0.5032 0.3048 0.0755)
Tailwind v3 hex#854D0E
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on yellow-8003.07:1FailPassFailFail20.9
White text on yellow-8006.84:1PassPassFailPass−88.2
Yellow-800 text on white6.84:1PassPassFailPass83.2
Yellow-800 text on black3.07:1FailPassFailFail−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)

  1. 5%
    #8f540d
  2. 15%
    #9b6626
  3. 25%
    #a77840
  4. 35%
    #b28a59
  5. 45%
    #be9c73
  6. 55%
    #caae8c
  7. 65%
    #d6c0a6
  8. 75%
    #e2d2bf
  9. 85%
    #ede4d9
  10. 95%
    #f9f6f2

Shades (mixed with black)

  1. 5%
    #824700
  2. 15%
    #744000
  3. 25%
    #673800
  4. 35%
    #593100
  5. 45%
    #4b2900
  6. 55%
    #3e2200
  7. 65%
    #301a00
  8. 75%
    #221300
  9. 85%
    #150b00
  10. 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.

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

Nearest CSS named colors
ColorHEXΔE OK
saddlebrown#8b45132.2
sienna#a0522d6.1
brown#a52a2a9.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
amber-800#973c004.1
yellow-900#733e0a5.9
amber-900#7b33067.0

Code snippets

Tailwind CSS
<div class="bg-yellow-800 text-white">...</div>
<p class="text-yellow-800 border-yellow-800">...</p>
CSS
.element {
  color: var(--color-yellow-800);
  background-color: oklch(47.6% 0.114 61.907);
  border-color: #894b00;
  outline-color: rgb(137 75 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let yellow800 = Color(red: 0.537, green: 0.294, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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