Skip to content

Tailwind CSS v4 default palette

Tailwind yellow-200: #FFF085

In Tailwind CSS v4, yellow-200 is defined as --color-yellow-200: oklch(94.5% 0.129 101.54), which is #FFF085 in hex and rgb(255, 240, 133): a very light, moderately saturated yellow. In Tailwind v3, yellow-200 was #FEF08A.

yellow-200#FFF085

In OKLCH, yellow-200 has a lightness of 94.5%, chroma 0.129 and hue 101.5°.

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

In v3, yellow-200 was #FEF08A. The v4 value is ΔE OK 0.5 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-200

Color codes for yellow-200
Tailwind v4 token--color-yellow-200
OKLCH (source value)oklch(94.5% 0.129 101.54)
HEX#FFF085
RGBrgb(255, 240, 133)
HSLhsl(53, 100%, 76%)
HWBhwb(53 52% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 6%, 48%, 0%)
Decimal16,773,253
Tailwind v3 hex#FEF08A
Utility classesbg-yellow-200, text-yellow-200, border-yellow-200

Tailwind yellow scale

Contrast and accessibility

On yellow-200, black text has a contrast ratio of 18.05:1 and passes AAA at any text size; white text reaches 1.16: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-20018.05:1PassPassPassPass95.9
White text on yellow-2001.16:1FailFailFailFail−9.0
Yellow-200 text on white1.16:1FailFailFailFail7.7
Yellow-200 text on black18.05:1PassPassPassPass−96.7

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #fff18b
  2. 15%
    #fff297
  3. 25%
    #fff4a4
  4. 35%
    #fff5b0
  5. 45%
    #fff7bc
  6. 55%
    #fff8c8
  7. 65%
    #fffad4
  8. 75%
    #fffbe1
  9. 85%
    #fffded
  10. 95%
    #fffef9

Shades (mixed with black)

  1. 5%
    #f2e47e
  2. 15%
    #d9cc71
  3. 25%
    #bfb464
  4. 35%
    #a69c56
  5. 45%
    #8c8449
  6. 55%
    #736c3c
  7. 65%
    #59542f
  8. 75%
    #403c21
  9. 85%
    #262414
  10. 95%
    #0d0c07

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, yellow-200's complementary color is #E7EAFF (close to lavender), its analogous colors are #FFE5B6 and #CEFFA3, and its triadic partners are #BBF8FF and #FFDCFA. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#e7eaff
Analogous−30°, +30°#ffe5b6#ceffa3
Triadic+120°, +240°#bbf8ff#ffdcfa
Split-complementary+150°, +210°#d6f0ff#fbe1ff

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-200 is a warm color: its hue is 53° 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
khaki#f0e68c3.6
palegoldenrod#eee8aa5.5
moccasin#ffe4b57.1

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
amber-200#fee6852.6
lime-200#d8f9995.1
yellow-100#fef9c26.4

Code snippets

Tailwind CSS
<div class="bg-yellow-200 text-black">...</div>
<p class="text-yellow-200 border-yellow-200">...</p>
CSS
.element {
  color: var(--color-yellow-200);
  background-color: oklch(94.5% 0.129 101.54);
  border-color: #fff085;
  outline-color: rgb(255 240 133);
}
SwiftUI
import SwiftUI

extension Color {
  static let yellow200 = Color(red: 1.000, green: 0.941, blue: 0.522)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const yellow200 = Color(0xFFFFF085);
Android XML
<!-- res/values/colors.xml -->
<color name="yellow_200">#FFF085</color>

Frequently asked questions

What is the hex code for Tailwind yellow-200?
In Tailwind CSS v4, yellow-200 is oklch(94.5% 0.129 101.54), which converts to #FFF085 (rgb(255, 240, 133)) in sRGB. In Tailwind v3 the same name was #FEF08A.
What is the difference between yellow-200 in Tailwind v3 and v4?
v3 used the hex #FEF08A; v4 redefined the palette in OKLCH as oklch(94.5% 0.129 101.54). In v3, yellow-200 was #FEF08A. The v4 value is ΔE OK 0.5 away, below the point where most people can tell them apart.
How do I use yellow-200 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-yellow-200). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on yellow-200?
White text on yellow-200 has a contrast ratio of 1.16:1, which fails AA even for large text under WCAG 2.2. Black text reaches 18.05:1 and passes both AA and AAA. In APCA terms that is Lc −9.0 for white and Lc 95.9 for black.
Which CSS named color is closest to yellow-200?
The closest is khaki (#F0E68C) at ΔE OK 3.6, followed by palegoldenrod and moccasin.

Last reviewed by Arielton Oberek.