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.
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
| Tailwind v4 token | --color-amber-700 |
|---|---|
| OKLCH (source value) | oklch(55.5% 0.163 48.998) |
| HEX | #BB4D00 |
| RGB | rgb(187, 77, 0) |
| HSL | hsl(25, 100%, 37%) |
| HWB | hwb(25 0% 27%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 59%, 100%, 27%) |
| Decimal | 12,274,944 |
| Display P3 | color(display-p3 0.6799 0.3277 0.0521) |
| Tailwind v3 hex | #B45309 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on amber-700 | 4.17:1 | Fail | Pass | Fail | Fail | 30.2 |
| White text on amber-700 | 5.03:1 | Pass | Pass | Fail | Pass | −79.3 |
| Amber-700 text on white | 5.03:1 | Pass | Pass | Fail | Pass | 73.9 |
| Amber-700 text on black | 4.17:1 | Fail | Pass | Fail | Fail | −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)
- 5%
#be560d - 15%
#c56826 - 25%
#cc7a40 - 35%
#d38b59 - 45%
#da9d73 - 55%
#e0af8c - 65%
#e7c1a6 - 75%
#eed3bf - 85%
#f5e4d9 - 95%
#fcf6f2
Shades (mixed with black)
- 5%
#b24900 - 15%
#9f4100 - 25%
#8c3a00 - 35%
#7a3200 - 45%
#672a00 - 55%
#542300 - 65%
#411b00 - 75%
#2f1300 - 85%
#1c0c00 - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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 Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| orange-700 | #ca3500 | 4.6 |
| yellow-700 | #a65f00 | 5.3 |
| amber-800 | #973c00 | 8.6 |
Code snippets
<div class="bg-amber-700 text-white">...</div>
<p class="text-amber-700 border-amber-700">...</p>.element {
color: var(--color-amber-700);
background-color: oklch(55.5% 0.163 48.998);
border-color: #bb4d00;
outline-color: rgb(187 77 0);
}import SwiftUI
extension Color {
static let amber700 = Color(red: 0.733, green: 0.302, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Amber700 = Color(0xFFBB4D00)import 'package:flutter/material.dart';
const amber700 = Color(0xFFBB4D00);<!-- 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.