Skip to content

Tailwind CSS v4 default palette

Tailwind yellow-600: #D08700

In Tailwind CSS v4, yellow-600 is defined as --color-yellow-600: oklch(68.1% 0.162 75.834), which is #D08700 in hex and rgb(208, 135, 0): a medium, vivid orange. In Tailwind v3, yellow-600 was #CA8A04.

yellow-600#D08700

In OKLCH, yellow-600 has a lightness of 68.1%, chroma 0.162 and hue 75.8°.

This OKLCH value lies outside sRGB. The hex #D08700 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.7763 0.5425 0.0417).

In v3, yellow-600 was #CA8A04. The v4 value is ΔE OK 2.0 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-600

Color codes for yellow-600
Tailwind v4 token--color-yellow-600
OKLCH (source value)oklch(68.1% 0.162 75.834)
HEX#D08700
RGBrgb(208, 135, 0)
HSLhsl(39, 100%, 41%)
HWBhwb(39 0% 18%)
CMYK (naive, no ICC profile)cmyk(0%, 35%, 100%, 18%)
Decimal13,666,048
Display P3color(display-p3 0.7763 0.5425 0.0417)
Tailwind v3 hex#CA8A04
Utility classesbg-yellow-600, text-yellow-600, border-yellow-600

Tailwind yellow scale

Contrast and accessibility

On yellow-600, black text has a contrast ratio of 7.14:1 and passes AAA at any text size; white text reaches 2.93: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 yellow-6007.14:1PassPassPassPass48.6
White text on yellow-6002.93:1FailFailFailFail−60.8
Yellow-600 text on white2.93:1FailFailFailFail55.5
Yellow-600 text on black7.14:1PassPassPassPass−46.3

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #d28d0d
  2. 15%
    #d79926
  3. 25%
    #dca540
  4. 35%
    #e0b159
  5. 45%
    #e5bd73
  6. 55%
    #eac98c
  7. 65%
    #efd5a6
  8. 75%
    #f3e1bf
  9. 85%
    #f8edd9
  10. 95%
    #fdf9f2

Shades (mixed with black)

  1. 5%
    #c68000
  2. 15%
    #b17300
  3. 25%
    #9c6500
  4. 35%
    #875800
  5. 45%
    #724a00
  6. 55%
    #5e3d00
  7. 65%
    #492f00
  8. 75%
    #342200
  9. 85%
    #1f1400
  10. 95%
    #0a0700

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, yellow-600's complementary color is #4E99FA (close to cornflowerblue), its analogous colors are #E77335 and #A79D00, and its triadic partners are #00B1B3 and #BF76DB. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#4e99fa
Analogous−30°, +30°#e77335#a79d00
Triadic+120°, +240°#00b1b3#bf76db
Split-complementary+150°, +210°#00aadf#9286f7

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-600 is a warm color: its hue is 39° 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
darkgoldenrod#b8860b4.4
peru#cd853f5.2
goldenrod#daa5207.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
amber-600#e171005.7
amber-500#fd9a009.3
orange-400#ff89049.4

Code snippets

Tailwind CSS
<div class="bg-yellow-600 text-black">...</div>
<p class="text-yellow-600 border-yellow-600">...</p>
CSS
.element {
  color: var(--color-yellow-600);
  background-color: oklch(68.1% 0.162 75.834);
  border-color: #d08700;
  outline-color: rgb(208 135 0);
}
SwiftUI
import SwiftUI

extension Color {
  static let yellow600 = Color(red: 0.816, green: 0.529, blue: 0.000)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const yellow600 = Color(0xFFD08700);
Android XML
<!-- res/values/colors.xml -->
<color name="yellow_600">#D08700</color>

Frequently asked questions

What is the hex code for Tailwind yellow-600?
In Tailwind CSS v4, yellow-600 is oklch(68.1% 0.162 75.834), which converts to #D08700 (rgb(208, 135, 0)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #CA8A04.
What is the difference between yellow-600 in Tailwind v3 and v4?
v3 used the hex #CA8A04; v4 redefined the palette in OKLCH as oklch(68.1% 0.162 75.834). In v3, yellow-600 was #CA8A04. The v4 value is ΔE OK 2.0 away, below the point where most people can tell them apart; v4 is more saturated.
How do I use yellow-600 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-yellow-600). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on yellow-600?
White text on yellow-600 has a contrast ratio of 2.93:1, which fails AA even for large text under WCAG 2.2. Black text reaches 7.14:1 and passes both AA and AAA. In APCA terms that is Lc −60.8 for white and Lc 48.6 for black.
Which CSS named color is closest to yellow-600?
The closest is darkgoldenrod (#B8860B) at ΔE OK 4.4, followed by peru and goldenrod.

Last reviewed by Arielton Oberek.