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.
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
| Tailwind v4 token | --color-yellow-100 |
|---|---|
| OKLCH (source value) | oklch(97.3% 0.071 103.193) |
| HEX | #FEF9C2 |
| RGB | rgb(254, 249, 194) |
| HSL | hsl(55, 97%, 88%) |
| HWB | hwb(55 76% 0%) |
| CMYK (naive, no ICC profile) | cmyk(0%, 2%, 24%, 0%) |
| Decimal | 16,710,082 |
| Tailwind v3 hex | #FEF9C3 |
| Utility classes | bg-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.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on yellow-100 | 19.54:1 | Pass | Pass | Pass | Pass | 101.1 |
| White text on yellow-100 | 1.07:1 | Fail | Fail | Fail | Fail | 0.0 |
| Yellow-100 text on white | 1.07:1 | Fail | Fail | Fail | Fail | 0.0 |
| Yellow-100 text on black | 19.54:1 | Pass | Pass | Pass | Pass | −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)
- 5%
#fef9c5 - 15%
#fefacb - 25%
#fefbd1 - 35%
#fefbd7 - 45%
#fefcdd - 55%
#fffce4 - 65%
#fffdea - 75%
#fffef0 - 85%
#fffef6 - 95%
#fffffc
Shades (mixed with black)
- 5%
#f1edb8 - 15%
#d8d4a5 - 25%
#bfbb92 - 35%
#a5a27e - 45%
#8c896b - 55%
#727057 - 65%
#595744 - 75%
#403e31 - 85%
#26251d - 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.
| Harmony | Rotation | Color |
|---|---|---|
| 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
| Color | HEX | ΔE OK |
|---|---|---|
| lemonchiffon | #fffacd | 1.4 |
| lightgoldenrodyellow | #fafad2 | 2.0 |
| cornsilk | #fff8dc | 3.5 |
Code snippets
<div class="bg-yellow-100 text-black">...</div>
<p class="text-yellow-100 border-yellow-100">...</p>.element {
color: var(--color-yellow-100);
background-color: oklch(97.3% 0.071 103.193);
border-color: #fef9c2;
outline-color: rgb(254 249 194);
}import SwiftUI
extension Color {
static let yellow100 = Color(red: 0.996, green: 0.976, blue: 0.761)
}import androidx.compose.ui.graphics.Color
val Yellow100 = Color(0xFFFEF9C2)import 'package:flutter/material.dart';
const yellow100 = Color(0xFFFEF9C2);<!-- 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.