Skip to content

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.

amber-950#461901

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

Color codes for amber-950
Tailwind v4 token--color-amber-950
OKLCH (source value)oklch(27.9% 0.077 45.635)
HEX#461901
RGBrgb(70, 25, 1)
HSLhsl(21, 97%, 14%)
HWBhwb(21 0% 73%)
CMYK (naive, no ICC profile)cmyk(0%, 64%, 99%, 73%)
Decimal4,593,921
Tailwind v3 hex#451A03
Utility classesbg-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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on amber-9501.39:1FailFailFailFail0.0
White text on amber-95015.00:1PassPassPassPass−104.3
Amber-950 text on white15.00:1PassPassPassPass101.4
Amber-950 text on black1.39:1FailFailFailFail0.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)

  1. 5%
    #4f250e
  2. 15%
    #623c27
  3. 25%
    #745341
  4. 35%
    #876a5a
  5. 45%
    #998173
  6. 55%
    #ac988d
  7. 65%
    #beafa6
  8. 75%
    #d1c6c0
  9. 85%
    #e3ddd9
  10. 95%
    #f6f4f2

Shades (mixed with black)

  1. 5%
    #431801
  2. 15%
    #3c1501
  3. 25%
    #351301
  4. 35%
    #2e1001
  5. 45%
    #270e01
  6. 55%
    #1f0b00
  7. 65%
    #190900
  8. 75%
    #120600
  9. 85%
    #0b0400
  10. 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.

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

Nearest CSS named colors
ColorHEXΔE OK
maroon#80000012.9
darkred#8b000015.2
darkslategray#2f4f4f16.7

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-950#4320041.7
orange-950#4413061.8
red-950#4608093.9

Code snippets

Tailwind CSS
<div class="bg-amber-950 text-white">...</div>
<p class="text-amber-950 border-amber-950">...</p>
CSS
.element {
  color: var(--color-amber-950);
  background-color: oklch(27.9% 0.077 45.635);
  border-color: #461901;
  outline-color: rgb(70 25 1);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber950 = Color(red: 0.275, green: 0.098, blue: 0.004)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

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