Tailwind CSS v4 default palette
Tailwind amber-800: #973C00
In Tailwind CSS v4, amber-800 is defined as --color-amber-800: oklch(47.3% 0.137 46.201), which is #973C00 in hex and rgb(151, 60, 0): a medium-dark, moderately saturated brown. In Tailwind v3, amber-800 was #92400E.
In OKLCH, amber-800 has a lightness of 47.3%, chroma 0.137 and hue 46.2°.
This OKLCH value lies outside sRGB. The hex #973C00 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.5475 0.2561 0.0728).
In v3, amber-800 was #92400E. The v4 value is ΔE OK 1.2 away, below the point where most people can tell them apart; v4 is more saturated.
Tailwind amber sits between orange and yellow and is the conventional warning color; its light shades make readable callout backgrounds.
Color codes for amber-800
| Tailwind v4 token | --color-amber-800 |
|---|---|
| OKLCH (source value) | oklch(47.3% 0.137 46.201) |
| HEX | #973C00 |
| RGB | rgb(151, 60, 0) |
| HSL | hsl(24, 100%, 30%) |
| HWB | hwb(24 0% 41%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 60%, 100%, 41%) |
| Decimal | 9,911,296 |
| Display P3 | color(display-p3 0.5475 0.2561 0.0728) |
| Tailwind v3 hex | #92400E |
| Utility classes | bg-amber-800, text-amber-800, border-amber-800 |
Tailwind amber scale
Contrast and accessibility
On amber-800, white text has a contrast ratio of 7.08:1 and passes AAA at any text size; black text reaches 2.96: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 amber-800 | 2.96:1 | Fail | Fail | Fail | Fail | 20.3 |
| White text on amber-800 | 7.08:1 | Pass | Pass | Pass | Pass | −88.7 |
| Amber-800 text on white | 7.08:1 | Pass | Pass | Pass | Pass | 83.8 |
| Amber-800 text on black | 2.96:1 | Fail | Fail | Fail | Fail | −18.2 |
Tints and shades
Each step mixes var(--color-amber-800) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-amber-800), white 25%) in CSS.
Tints (mixed with white)
- 5%
#9c460d - 15%
#a75926 - 25%
#b16d40 - 35%
#bb8059 - 45%
#c69473 - 55%
#d0a78c - 65%
#dbbba6 - 75%
#e5cebf - 85%
#efe2d9 - 95%
#faf5f2
Shades (mixed with black)
- 5%
#8f3900 - 15%
#803300 - 25%
#712d00 - 35%
#622700 - 45%
#532100 - 55%
#441b00 - 65%
#351500 - 75%
#260f00 - 85%
#170900 - 95%
#080300
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, amber-800's complementary color is #00678C (close to teal), its analogous colors are #993240 and #815000, and its triadic partners are #00704C and #584CA4. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #00678c |
| Analogous | −30°, +30° | #993240#815000 |
| Triadic | +120°, +240° | #00704c#584ca4 |
| Split-complementary | +150°, +210° | #006c6e#1e5aa6 |
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 amber-800 is a warm color: its hue is 24° 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.7 |
| sienna | #a0522d | 5.8 |
| brown | #a52a2a | 5.8 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| orange-800 | #9f2d00 | 3.0 |
| yellow-800 | #894b00 | 4.1 |
| amber-900 | #7b3306 | 6.4 |
Code snippets
<div class="bg-amber-800 text-white">...</div>
<p class="text-amber-800 border-amber-800">...</p>.element {
color: var(--color-amber-800);
background-color: oklch(47.3% 0.137 46.201);
border-color: #973c00;
outline-color: rgb(151 60 0);
}import SwiftUI
extension Color {
static let amber800 = Color(red: 0.592, green: 0.235, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Amber800 = Color(0xFF973C00)import 'package:flutter/material.dart';
const amber800 = Color(0xFF973C00);<!-- res/values/colors.xml -->
<color name="amber_800">#973C00</color>Frequently asked questions
- What is the hex code for Tailwind amber-800?
- In Tailwind CSS v4, amber-800 is oklch(47.3% 0.137 46.201), which converts to #973C00 (rgb(151, 60, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #92400E.
- What is the difference between amber-800 in Tailwind v3 and v4?
- v3 used the hex #92400E; v4 redefined the palette in OKLCH as oklch(47.3% 0.137 46.201). In v3, amber-800 was #92400E. The v4 value is ΔE OK 1.2 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use amber-800 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-amber-800). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on amber-800?
- White text on amber-800 has a contrast ratio of 7.08:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.96:1 and fails AA even for large text. In APCA terms that is Lc −88.7 for white and Lc 20.3 for black.
- Which CSS named color is closest to amber-800?
- The closest is saddlebrown (#8B4513) at ΔE OK 2.7, followed by sienna and brown.
Last reviewed by Arielton Oberek.