Skip to content

Tailwind CSS v4 default palette

Tailwind amber-600: #E17100

In Tailwind CSS v4, amber-600 is defined as --color-amber-600: oklch(66.6% 0.179 58.318), which is #E17100 in hex and rgb(225, 113, 0): a medium, vivid orange. In Tailwind v3, amber-600 was #D97706.

amber-600#E17100

In OKLCH, amber-600 has a lightness of 66.6%, chroma 0.179 and hue 58.3°.

This OKLCH value lies outside sRGB. The hex #E17100 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.8271 0.4672 0.0336).

In v3, amber-600 was #D97706. The v4 value is ΔE OK 2.2 away; 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-600

Color codes for amber-600
Tailwind v4 token--color-amber-600
OKLCH (source value)oklch(66.6% 0.179 58.318)
HEX#E17100
RGBrgb(225, 113, 0)
HSLhsl(30, 100%, 44%)
HWBhwb(30 0% 12%)
CMYK (naive, no ICC profile)cmyk(0%, 50%, 100%, 12%)
Decimal14,774,528
Display P3color(display-p3 0.8271 0.4672 0.0336)
Tailwind v3 hex#D97706
Utility classesbg-amber-600, text-amber-600, border-amber-600

Tailwind amber scale

Contrast and accessibility

On amber-600, black text has a contrast ratio of 6.56:1 and passes AA for normal text; white text reaches 3.19: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-6006.56:1PassPassFailPass45.5
White text on amber-6003.19:1FailPassFailFail−63.9
Amber-600 text on white3.19:1FailPassFailFail58.5
Amber-600 text on black6.56:1PassPassFailPass−43.2

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #e3780d
  2. 15%
    #e68626
  3. 25%
    #e99540
  4. 35%
    #eca359
  5. 45%
    #efb173
  6. 55%
    #f2bf8c
  7. 65%
    #f5cda6
  8. 75%
    #f8dcbf
  9. 85%
    #fbead9
  10. 95%
    #fef8f2

Shades (mixed with black)

  1. 5%
    #d66b00
  2. 15%
    #bf6000
  3. 25%
    #a95500
  4. 35%
    #924900
  5. 45%
    #7c3e00
  6. 55%
    #653300
  7. 65%
    #4f2800
  8. 75%
    #381c00
  9. 85%
    #221100
  10. 95%
    #0b0600

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, amber-600's complementary color is #009FF1 (close to dodgerblue), its analogous colors are #EE5F51 and #BB8C00, and its triadic partners are #00AF95 and #A376F1. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#009ff1
Analogous−30°, +30°#ee5f51#bb8c00
Triadic+120°, +240°#00af95#a376f1
Split-complementary+150°, +210°#00a9bf#668bff

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-600 is a warm color: its hue is 30° 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
chocolate#d2691e4.6
peru#cd853f5.8
darkgoldenrod#b8860b7.9

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-600#d087005.7
orange-500#ff69006.3
orange-600#f549007.6

Code snippets

Tailwind CSS
<div class="bg-amber-600 text-black">...</div>
<p class="text-amber-600 border-amber-600">...</p>
CSS
.element {
  color: var(--color-amber-600);
  background-color: oklch(66.6% 0.179 58.318);
  border-color: #e17100;
  outline-color: rgb(225 113 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber600 = Color(red: 0.882, green: 0.443, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const amber600 = Color(0xFFE17100);
Android XML
<!-- res/values/colors.xml -->
<color name="amber_600">#E17100</color>

Frequently asked questions

What is the hex code for Tailwind amber-600?
In Tailwind CSS v4, amber-600 is oklch(66.6% 0.179 58.318), which converts to #E17100 (rgb(225, 113, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #D97706.
What is the difference between amber-600 in Tailwind v3 and v4?
v3 used the hex #D97706; v4 redefined the palette in OKLCH as oklch(66.6% 0.179 58.318). In v3, amber-600 was #D97706. The v4 value is ΔE OK 2.2 away; v4 is more saturated.
How do I use amber-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-amber-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on amber-600?
White text on amber-600 has a contrast ratio of 3.19:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 6.56:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −63.9 for white and Lc 45.5 for black.
Which CSS named color is closest to amber-600?
The closest is chocolate (#D2691E) at ΔE OK 4.6, followed by peru and darkgoldenrod.

Last reviewed by Arielton Oberek.