Tailwind CSS v4 default palette
Tailwind amber-950: #461901
In Tailwind CSS v4, amber-950 is defined as --color-amber-950: oklch(27.9% 0.077 45.635), which is #461901 in hex and rgb(70, 25, 1): a very dark, muted brown. In Tailwind v3, amber-950 was #451A03.
In OKLCH, amber-950 has a lightness of 27.9%, chroma 0.077 and hue 45.6°.
The value fits inside sRGB, so the hex #461901 represents it without loss on any screen.
In v3, amber-950 was #451A03. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.
Tailwind amber sits between orange and yellow and is the conventional warning color; its light shades make readable callout backgrounds.
Color codes for amber-950
| Tailwind v4 token | --color-amber-950 |
|---|---|
| OKLCH (source value) | oklch(27.9% 0.077 45.635) |
| HEX | #461901 |
| RGB | rgb(70, 25, 1) |
| HSL | hsl(21, 97%, 14%) |
| HWB | hwb(21 0% 73%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 64%, 99%, 73%) |
| Decimal | 4,593,921 |
| Tailwind v3 hex | #451A03 |
| Utility classes | bg-amber-950, text-amber-950, border-amber-950 |
Tailwind amber scale
Contrast and accessibility
On amber-950, white text has a contrast ratio of 15.00:1 and passes AAA at any text size; black text reaches 1.39: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-950 | 1.39:1 | Fail | Fail | Fail | Fail | 0.0 |
| White text on amber-950 | 15.00:1 | Pass | Pass | Pass | Pass | −104.3 |
| Amber-950 text on white | 15.00:1 | Pass | Pass | Pass | Pass | 101.4 |
| Amber-950 text on black | 1.39:1 | Fail | Fail | Fail | Fail | 0.0 |
Tints and shades
Each step mixes var(--color-amber-950) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-amber-950), white 25%) in CSS.
Tints (mixed with white)
- 5%
#4f250e - 15%
#623c27 - 25%
#745341 - 35%
#876a5a - 45%
#998173 - 55%
#ac988d - 65%
#beafa6 - 75%
#d1c6c0 - 85%
#e3ddd9 - 95%
#f6f4f2
Shades (mixed with black)
- 5%
#431801 - 15%
#3c1501 - 25%
#351301 - 35%
#2e1001 - 45%
#270e01 - 55%
#1f0b00 - 65%
#190900 - 75%
#120600 - 85%
#0b0400 - 95%
#040100
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, amber-950's complementary color is #002F44 (close to midnightblue), its analogous colors are #47151C and #3E2100, and its triadic partners are #00341F and #26214C. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #002f44 |
| Analogous | −30°, +30° | #47151c#3e2100 |
| Triadic | +120°, +240° | #00341f#26214c |
| Split-complementary | +150°, +210° | #003233#0a284d |
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-950 is a warm color: its hue is 21° 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 |
|---|---|---|
| maroon | #800000 | 12.9 |
| darkred | #8b0000 | 15.2 |
| darkslategray | #2f4f4f | 16.7 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| yellow-950 | #432004 | 1.7 |
| orange-950 | #441306 | 1.8 |
| red-950 | #460809 | 3.9 |
Code snippets
<div class="bg-amber-950 text-white">...</div>
<p class="text-amber-950 border-amber-950">...</p>.element {
color: var(--color-amber-950);
background-color: oklch(27.9% 0.077 45.635);
border-color: #461901;
outline-color: rgb(70 25 1);
}import SwiftUI
extension Color {
static let amber950 = Color(red: 0.275, green: 0.098, blue: 0.004)
}import androidx.compose.ui.graphics.Color
val Amber950 = Color(0xFF461901)import 'package:flutter/material.dart';
const amber950 = Color(0xFF461901);<!-- res/values/colors.xml -->
<color name="amber_950">#461901</color>Frequently asked questions
- What is the hex code for Tailwind amber-950?
- In Tailwind CSS v4, amber-950 is oklch(27.9% 0.077 45.635), which converts to #461901 (rgb(70, 25, 1)) in sRGB. In Tailwind v3 the same name was #451A03.
- What is the difference between amber-950 in Tailwind v3 and v4?
- v3 used the hex #451A03; v4 redefined the palette in OKLCH as oklch(27.9% 0.077 45.635). In v3, amber-950 was #451A03. The v4 value is ΔE OK 0.3 away, below the point where most people can tell them apart.
- How do I use amber-950 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-amber-950). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on amber-950?
- White text on amber-950 has a contrast ratio of 15.00:1, which passes both AA and AAA under WCAG 2.2. Black text reaches 1.39:1 and fails AA even for large text. In APCA terms that is Lc −104.3 for white and Lc 0.0 for black.
- Which CSS named color is closest to amber-950?
- The closest is maroon (#800000) at ΔE OK 12.9, followed by darkred and darkslategray.
Last reviewed by Arielton Oberek.