Skip to content

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.

amber-800#973C00

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

Color codes for amber-800
Tailwind v4 token--color-amber-800
OKLCH (source value)oklch(47.3% 0.137 46.201)
HEX#973C00
RGBrgb(151, 60, 0)
HSLhsl(24, 100%, 30%)
HWBhwb(24 0% 41%)
CMYK (naive, no ICC profile)cmyk(0%, 60%, 100%, 41%)
Decimal9,911,296
Display P3color(display-p3 0.5475 0.2561 0.0728)
Tailwind v3 hex#92400E
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on amber-8002.96:1FailFailFailFail20.3
White text on amber-8007.08:1PassPassPassPass−88.7
Amber-800 text on white7.08:1PassPassPassPass83.8
Amber-800 text on black2.96:1FailFailFailFail−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)

  1. 5%
    #9c460d
  2. 15%
    #a75926
  3. 25%
    #b16d40
  4. 35%
    #bb8059
  5. 45%
    #c69473
  6. 55%
    #d0a78c
  7. 65%
    #dbbba6
  8. 75%
    #e5cebf
  9. 85%
    #efe2d9
  10. 95%
    #faf5f2

Shades (mixed with black)

  1. 5%
    #8f3900
  2. 15%
    #803300
  3. 25%
    #712d00
  4. 35%
    #622700
  5. 45%
    #532100
  6. 55%
    #441b00
  7. 65%
    #351500
  8. 75%
    #260f00
  9. 85%
    #170900
  10. 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.

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

Nearest CSS named colors
ColorHEXΔE OK
saddlebrown#8b45132.7
sienna#a0522d5.8
brown#a52a2a5.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-800#9f2d003.0
yellow-800#894b004.1
amber-900#7b33066.4

Code snippets

Tailwind CSS
<div class="bg-amber-800 text-white">...</div>
<p class="text-amber-800 border-amber-800">...</p>
CSS
.element {
  color: var(--color-amber-800);
  background-color: oklch(47.3% 0.137 46.201);
  border-color: #973c00;
  outline-color: rgb(151 60 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber800 = Color(red: 0.592, green: 0.235, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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