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.
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
| Tailwind v4 token | --color-amber-900 |
|---|---|
| OKLCH (source value) | oklch(41.4% 0.112 45.904) |
| HEX | #7B3306 |
| RGB | rgb(123, 51, 6) |
| HSL | hsl(23, 91%, 25%) |
| HWB | hwb(23 2% 52%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 59%, 95%, 52%) |
| Decimal | 8,073,990 |
| Tailwind v3 hex | #78350F |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on amber-900 | 2.31:1 | Fail | Fail | Fail | Fail | 13.8 |
| White text on amber-900 | 9.05:1 | Pass | Pass | Pass | Pass | −94.6 |
| Amber-900 text on white | 9.05:1 | Pass | Pass | Pass | Pass | 90.2 |
| Amber-900 text on black | 2.31:1 | Fail | Fail | Fail | Fail | −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)
- 5%
#823d12 - 15%
#8f522b - 25%
#9c6644 - 35%
#a97a5d - 45%
#b68f76 - 55%
#c4a38f - 65%
#d1b8a8 - 75%
#deccc1 - 85%
#ebe0da - 95%
#f8f5f3
Shades (mixed with black)
- 5%
#753006 - 15%
#692b05 - 25%
#5c2605 - 35%
#502104 - 45%
#441c03 - 55%
#371703 - 65%
#2b1202 - 75%
#1f0d02 - 85%
#120801 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| saddlebrown | #8b4513 | 5.8 |
| darkred | #8b0000 | 6.7 |
| maroon | #800000 | 6.8 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| orange-900 | #7e2a0c | 2.0 |
| yellow-900 | #733e0a | 2.8 |
| red-900 | #82181a | 5.6 |
Code snippets
<div class="bg-amber-900 text-white">...</div>
<p class="text-amber-900 border-amber-900">...</p>.element {
color: var(--color-amber-900);
background-color: oklch(41.4% 0.112 45.904);
border-color: #7b3306;
outline-color: rgb(123 51 6);
}import SwiftUI
extension Color {
static let amber900 = Color(red: 0.482, green: 0.200, blue: 0.024)
}import androidx.compose.ui.graphics.Color
val Amber900 = Color(0xFF7B3306)import 'package:flutter/material.dart';
const amber900 = Color(0xFF7B3306);<!-- 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.