Skip to content

Tailwind CSS v4 default palette

Tailwind amber-900: #7B3306

In Tailwind CSS v4, amber-900 is defined as --color-amber-900: oklch(41.4% 0.112 45.904), which is #7B3306 in hex and rgb(123, 51, 6): a dark, moderately saturated brown. In Tailwind v3, amber-900 was #78350F.

amber-900#7B3306

In OKLCH, amber-900 has a lightness of 41.4%, chroma 0.112 and hue 45.9°.

The value fits inside sRGB, so the hex #7B3306 represents it without loss on any screen.

In v3, amber-900 was #78350F. The v4 value is ΔE OK 0.7 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-900

Color codes for amber-900
Tailwind v4 token--color-amber-900
OKLCH (source value)oklch(41.4% 0.112 45.904)
HEX#7B3306
RGBrgb(123, 51, 6)
HSLhsl(23, 91%, 25%)
HWBhwb(23 2% 52%)
CMYK (naive, no ICC profile)cmyk(0%, 59%, 95%, 52%)
Decimal8,073,990
Tailwind v3 hex#78350F
Utility classesbg-amber-900, text-amber-900, border-amber-900

Tailwind amber scale

Contrast and accessibility

On amber-900, white text has a contrast ratio of 9.05:1 and passes AAA at any text size; black text reaches 2.31: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-9002.31:1FailFailFailFail13.8
White text on amber-9009.05:1PassPassPassPass−94.6
Amber-900 text on white9.05:1PassPassPassPass90.2
Amber-900 text on black2.31:1FailFailFailFail−12.1

Tints and shades

Each step mixes var(--color-amber-900) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-amber-900), white 25%) in CSS.

Tints (mixed with white)

  1. 5%
    #823d12
  2. 15%
    #8f522b
  3. 25%
    #9c6644
  4. 35%
    #a97a5d
  5. 45%
    #b68f76
  6. 55%
    #c4a38f
  7. 65%
    #d1b8a8
  8. 75%
    #deccc1
  9. 85%
    #ebe0da
  10. 95%
    #f8f5f3

Shades (mixed with black)

  1. 5%
    #753006
  2. 15%
    #692b05
  3. 25%
    #5c2605
  4. 35%
    #502104
  5. 45%
    #441c03
  6. 55%
    #371703
  7. 65%
    #2b1202
  8. 75%
    #1f0d02
  9. 85%
    #120801
  10. 95%
    #060300

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, amber-900's complementary color is #005575 (close to darkslategray), its analogous colors are #7D2C36 and #6C4100, and its triadic partners are #005D3D and #483F85. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#005575
Analogous−30°, +30°#7d2c36#6c4100
Triadic+120°, +240°#005d3d#483f85
Split-complementary+150°, +210°#005a5b#1c4b87

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-900 is a warm color: its hue is 23° 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#8b45135.8
darkred#8b00006.7
maroon#8000006.8

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-900#7e2a0c2.0
yellow-900#733e0a2.8
red-900#82181a5.6

Code snippets

Tailwind CSS
<div class="bg-amber-900 text-white">...</div>
<p class="text-amber-900 border-amber-900">...</p>
CSS
.element {
  color: var(--color-amber-900);
  background-color: oklch(41.4% 0.112 45.904);
  border-color: #7b3306;
  outline-color: rgb(123 51 6);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber900 = Color(red: 0.482, green: 0.200, blue: 0.024)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const amber900 = Color(0xFF7B3306);
Android XML
<!-- res/values/colors.xml -->
<color name="amber_900">#7B3306</color>

Frequently asked questions

What is the hex code for Tailwind amber-900?
In Tailwind CSS v4, amber-900 is oklch(41.4% 0.112 45.904), which converts to #7B3306 (rgb(123, 51, 6)) in sRGB. In Tailwind v3 the same name was #78350F.
What is the difference between amber-900 in Tailwind v3 and v4?
v3 used the hex #78350F; v4 redefined the palette in OKLCH as oklch(41.4% 0.112 45.904). In v3, amber-900 was #78350F. The v4 value is ΔE OK 0.7 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use amber-900 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-amber-900). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on amber-900?
White text on amber-900 has a contrast ratio of 9.05:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 2.31:1 and fails AA even for large text. In APCA terms that is Lc −94.6 for white and Lc 13.8 for black.
Which CSS named color is closest to amber-900?
The closest is saddlebrown (#8B4513) at ΔE OK 5.8, followed by darkred and maroon.

Last reviewed by Arielton Oberek.