Tailwind CSS v4 default palette
Tailwind yellow-700: #A65F00
In Tailwind CSS v4, yellow-700 is defined as --color-yellow-700: oklch(55.4% 0.135 66.442), which is #A65F00 in hex and rgb(166, 95, 0): a medium-dark, moderately saturated brown. In Tailwind v3, yellow-700 was #A16207.
In OKLCH, yellow-700 has a lightness of 55.4%, chroma 0.135 and hue 66.4°.
This OKLCH value lies outside sRGB. The hex #A65F00 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.6131 0.3867 0.058).
In v3, yellow-700 was #A16207. The v4 value is ΔE OK 1.4 away, below the point where most people can tell them apart; v4 is more saturated.
Tailwind yellow has very high lightness through 400, so only the 700 and darker shades are suitable for text on white.
Color codes for yellow-700
| Tailwind v4 token | --color-yellow-700 |
|---|---|
| OKLCH (source value) | oklch(55.4% 0.135 66.442) |
| HEX | #A65F00 |
| RGB | rgb(166, 95, 0) |
| HSL | hsl(34, 100%, 33%) |
| HWB | hwb(34 0% 35%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 43%, 100%, 35%) |
| Decimal | 10,903,296 |
| Display P3 | color(display-p3 0.6131 0.3867 0.058) |
| Tailwind v3 hex | #A16207 |
| Utility classes | bg-yellow-700, text-yellow-700, border-yellow-700 |
Tailwind yellow scale
Contrast and accessibility
On yellow-700, white text has a contrast ratio of 4.93:1 and passes AA for normal text; black text reaches 4.25: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 yellow-700 | 4.25:1 | Fail | Pass | Fail | Fail | 30.4 |
| White text on yellow-700 | 4.93:1 | Pass | Pass | Fail | Pass | −79.1 |
| Yellow-700 text on white | 4.93:1 | Pass | Pass | Fail | Pass | 73.7 |
| Yellow-700 text on black | 4.25:1 | Fail | Pass | Fail | Fail | −28.0 |
Tints and shades
Each step mixes var(--color-yellow-700) with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, var(--color-yellow-700), white 25%) in CSS.
Tints (mixed with white)
- 5%
#aa670d - 15%
#b37726 - 25%
#bc8740 - 35%
#c59759 - 45%
#cea773 - 55%
#d7b78c - 65%
#e0c7a6 - 75%
#e9d7bf - 85%
#f2e7d9 - 95%
#fbf7f2
Shades (mixed with black)
- 5%
#9e5a00 - 15%
#8d5100 - 25%
#7d4700 - 35%
#6c3e00 - 45%
#5b3400 - 55%
#4b2b00 - 65%
#3a2100 - 75%
#2a1800 - 85%
#190e00 - 95%
#080500
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, yellow-700's complementary color is #1778BC (close to steelblue), its analogous colors are #B35135 and #8A7100, and its triadic partners are #00887D and #875BB0. For text on top, white gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #1778bc |
| Analogous | −30°, +30° | #b35135#8a7100 |
| Triadic | +120°, +240° | #00887d#875bb0 |
| Split-complementary | +150°, +210° | #00829f#5f69c0 |
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 yellow-700 is a warm color: its hue is 34° 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 |
|---|---|---|
| sienna | #a0522d | 5.8 |
| chocolate | #d2691e | 9.2 |
| saddlebrown | #8b4513 | 9.3 |
Nearest Tailwind v4 colors
| Color | HEX | ΔE OK |
|---|---|---|
| amber-700 | #bb4d00 | 5.3 |
| yellow-800 | #894b00 | 8.1 |
| amber-800 | #973c00 | 9.4 |
Code snippets
<div class="bg-yellow-700 text-white">...</div>
<p class="text-yellow-700 border-yellow-700">...</p>.element {
color: var(--color-yellow-700);
background-color: oklch(55.4% 0.135 66.442);
border-color: #a65f00;
outline-color: rgb(166 95 0);
}import SwiftUI
extension Color {
static let yellow700 = Color(red: 0.651, green: 0.373, blue: 0.000)
}import androidx.compose.ui.graphics.Color
val Yellow700 = Color(0xFFA65F00)import 'package:flutter/material.dart';
const yellow700 = Color(0xFFA65F00);<!-- res/values/colors.xml -->
<color name="yellow_700">#A65F00</color>Frequently asked questions
- What is the hex code for Tailwind yellow-700?
- In Tailwind CSS v4, yellow-700 is oklch(55.4% 0.135 66.442), which converts to #A65F00 (rgb(166, 95, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #A16207.
- What is the difference between yellow-700 in Tailwind v3 and v4?
- v3 used the hex #A16207; v4 redefined the palette in OKLCH as oklch(55.4% 0.135 66.442). In v3, yellow-700 was #A16207. The v4 value is ΔE OK 1.4 away, below the point where most people can tell them apart; v4 is more saturated.
- How do I use yellow-700 in plain CSS?
- Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-yellow-700). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
- Can you use white text on yellow-700?
- White text on yellow-700 has a contrast ratio of 4.93:1, which passes AA for normal text but not AAA under WCAG 2.2. Black text reaches 4.25:1 and passes AA only for large text (24 px, or 18.66 px bold, and up). In APCA terms that is Lc −79.1 for white and Lc 30.4 for black.
- Which CSS named color is closest to yellow-700?
- The closest is sienna (#A0522D) at ΔE OK 5.8, followed by chocolate and saddlebrown.
Last reviewed by Arielton Oberek.