Skip to content

Tailwind CSS v4 default palette

Tailwind yellow-100: #FEF9C2

In Tailwind CSS v4, yellow-100 is defined as --color-yellow-100: oklch(97.3% 0.071 103.193), which is #FEF9C2 in hex and rgb(254, 249, 194): a pale, muted yellow. In Tailwind v3, yellow-100 was #FEF9C3.

yellow-100#FEF9C2

In OKLCH, yellow-100 has a lightness of 97.3%, chroma 0.071 and hue 103.2°.

The value fits inside sRGB, so the hex #FEF9C2 represents it without loss on any screen.

In v3, yellow-100 was #FEF9C3. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.

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-100

Color codes for yellow-100
Tailwind v4 token--color-yellow-100
OKLCH (source value)oklch(97.3% 0.071 103.193)
HEX#FEF9C2
RGBrgb(254, 249, 194)
HSLhsl(55, 97%, 88%)
HWBhwb(55 76% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 2%, 24%, 0%)
Decimal16,710,082
Tailwind v3 hex#FEF9C3
Utility classesbg-yellow-100, text-yellow-100, border-yellow-100

Tailwind yellow scale

Contrast and accessibility

On yellow-100, black text has a contrast ratio of 19.54:1 and passes AAA at any text size; white text reaches 1.07: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-10019.54:1PassPassPassPass101.1
White text on yellow-1001.07:1FailFailFailFail0.0
Yellow-100 text on white1.07:1FailFailFailFail0.0
Yellow-100 text on black19.54:1PassPassPassPass−102.4

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #fef9c5
  2. 15%
    #fefacb
  3. 25%
    #fefbd1
  4. 35%
    #fefbd7
  5. 45%
    #fefcdd
  6. 55%
    #fffce4
  7. 65%
    #fffdea
  8. 75%
    #fffef0
  9. 85%
    #fffef6
  10. 95%
    #fffffc

Shades (mixed with black)

  1. 5%
    #f1edb8
  2. 15%
    #d8d4a5
  3. 25%
    #bfbb92
  4. 35%
    #a5a27e
  5. 45%
    #8c896b
  6. 55%
    #727057
  7. 65%
    #595744
  8. 75%
    #403e31
  9. 85%
    #26251d
  10. 95%
    #0d0c0a

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, yellow-100's complementary color is #F2F4FF (close to aliceblue), its analogous colors are #FFF1CE and #E4FFD0, and its triadic partners are #D5FEFF and #FFEBFE. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f2f4ff
Analogous−30°, +30°#fff1ce#e4ffd0
Triadic+120°, +240°#d5feff#ffebfe
Split-complementary+150°, +210°#e6f8ff#ffeeff

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-100 is a warm color: its hue is 55° 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
lemonchiffon#fffacd1.4
lightgoldenrodyellow#fafad22.0
cornsilk#fff8dc3.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
amber-100#fef3c61.8
lime-100#ecfcca2.4
lime-50#f7fee74.4

Code snippets

Tailwind CSS
<div class="bg-yellow-100 text-black">...</div>
<p class="text-yellow-100 border-yellow-100">...</p>
CSS
.element {
  color: var(--color-yellow-100);
  background-color: oklch(97.3% 0.071 103.193);
  border-color: #fef9c2;
  outline-color: rgb(254 249 194);
}
SwiftUI
import SwiftUI

extension Color {
  static let yellow100 = Color(red: 0.996, green: 0.976, blue: 0.761)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const yellow100 = Color(0xFFFEF9C2);
Android XML
<!-- res/values/colors.xml -->
<color name="yellow_100">#FEF9C2</color>

Frequently asked questions

What is the hex code for Tailwind yellow-100?
In Tailwind CSS v4, yellow-100 is oklch(97.3% 0.071 103.193), which converts to #FEF9C2 (rgb(254, 249, 194)) in sRGB. In Tailwind v3 the same name was #FEF9C3.
What is the difference between yellow-100 in Tailwind v3 and v4?
v3 used the hex #FEF9C3; v4 redefined the palette in OKLCH as oklch(97.3% 0.071 103.193). In v3, yellow-100 was #FEF9C3. The v4 value is ΔE OK 0.2 away, below the point where most people can tell them apart.
How do I use yellow-100 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-yellow-100). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on yellow-100?
White text on yellow-100 has a contrast ratio of 1.07:1, which fails AA even for large text under WCAG 2.2. Black text reaches 19.54:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 101.1 for black.
Which CSS named color is closest to yellow-100?
The closest is lemonchiffon (#FFFACD) at ΔE OK 1.4, followed by lightgoldenrodyellow and cornsilk.

Last reviewed by Arielton Oberek.