Skip to content

Tailwind CSS v4 default palette

Tailwind amber-700: #BB4D00

In Tailwind CSS v4, amber-700 is defined as --color-amber-700: oklch(55.5% 0.163 48.998), which is #BB4D00 in hex and rgb(187, 77, 0): a medium-dark, vivid brown. In Tailwind v3, amber-700 was #B45309.

amber-700#BB4D00

In OKLCH, amber-700 has a lightness of 55.5%, chroma 0.163 and hue 49.0°.

This OKLCH value lies outside sRGB. The hex #BB4D00 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.6799 0.3277 0.0521).

In v3, amber-700 was #B45309. The v4 value is ΔE OK 1.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-700

Color codes for amber-700
Tailwind v4 token--color-amber-700
OKLCH (source value)oklch(55.5% 0.163 48.998)
HEX#BB4D00
RGBrgb(187, 77, 0)
HSLhsl(25, 100%, 37%)
HWBhwb(25 0% 27%)
CMYK (naive, no ICC profile)cmyk(0%, 59%, 100%, 27%)
Decimal12,274,944
Display P3color(display-p3 0.6799 0.3277 0.0521)
Tailwind v3 hex#B45309
Utility classesbg-amber-700, text-amber-700, border-amber-700

Tailwind amber scale

Contrast and accessibility

On amber-700, white text has a contrast ratio of 5.03:1 and passes AA for normal text; black text reaches 4.17: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-7004.17:1FailPassFailFail30.2
White text on amber-7005.03:1PassPassFailPass−79.3
Amber-700 text on white5.03:1PassPassFailPass73.9
Amber-700 text on black4.17:1FailPassFailFail−27.8

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #be560d
  2. 15%
    #c56826
  3. 25%
    #cc7a40
  4. 35%
    #d38b59
  5. 45%
    #da9d73
  6. 55%
    #e0af8c
  7. 65%
    #e7c1a6
  8. 75%
    #eed3bf
  9. 85%
    #f5e4d9
  10. 95%
    #fcf6f2

Shades (mixed with black)

  1. 5%
    #b24900
  2. 15%
    #9f4100
  3. 25%
    #8c3a00
  4. 35%
    #7a3200
  5. 45%
    #672a00
  6. 55%
    #542300
  7. 65%
    #411b00
  8. 75%
    #2f1300
  9. 85%
    #1c0c00
  10. 95%
    #090400

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, amber-700's complementary color is #007FB0 (close to steelblue), its analogous colors are #C0404C and #9C6700, and its triadic partners are #008B65 and #735DCB. For text on top, white gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#007fb0
Analogous−30°, +30°#c0404c#9c6700
Triadic+120°, +240°#008b65#735dcb
Split-complementary+150°, +210°#00868c#3170d0

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-700 is a warm color: its hue is 25° 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
sienna#a0522d5.7
chocolate#d2691e8.0
firebrick#b222228.9

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
orange-700#ca35004.6
yellow-700#a65f005.3
amber-800#973c008.6

Code snippets

Tailwind CSS
<div class="bg-amber-700 text-white">...</div>
<p class="text-amber-700 border-amber-700">...</p>
CSS
.element {
  color: var(--color-amber-700);
  background-color: oklch(55.5% 0.163 48.998);
  border-color: #bb4d00;
  outline-color: rgb(187 77 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber700 = Color(red: 0.733, green: 0.302, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const amber700 = Color(0xFFBB4D00);
Android XML
<!-- res/values/colors.xml -->
<color name="amber_700">#BB4D00</color>

Frequently asked questions

What is the hex code for Tailwind amber-700?
In Tailwind CSS v4, amber-700 is oklch(55.5% 0.163 48.998), which converts to #BB4D00 (rgb(187, 77, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #B45309.
What is the difference between amber-700 in Tailwind v3 and v4?
v3 used the hex #B45309; v4 redefined the palette in OKLCH as oklch(55.5% 0.163 48.998). In v3, amber-700 was #B45309. The v4 value is ΔE OK 1.7 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use amber-700 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-amber-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on amber-700?
White text on amber-700 has a contrast ratio of 5.03:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.17:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −79.3 for white and Lc 30.2 for black.
Which CSS named color is closest to amber-700?
The closest is sienna (#A0522D) at ΔE OK 5.7, followed by chocolate and firebrick.

Last reviewed by Arielton Oberek.