Skip to content

Tailwind CSS v4 default palette

Tailwind amber-200: #FEE685

In Tailwind CSS v4, amber-200 is defined as --color-amber-200: oklch(92.4% 0.12 95.746), which is #FEE685 in hex and rgb(254, 230, 133): a very light, moderately saturated amber. In Tailwind v3, amber-200 was #FDE68A.

amber-200#FEE685

In OKLCH, amber-200 has a lightness of 92.4%, chroma 0.120 and hue 95.7°.

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

In v3, amber-200 was #FDE68A. The v4 value is ΔE OK 0.5 away, below the point where most people can tell them apart.

Tailwind amber sits between orange and yellow and is the conventional warning color; its light shades make readable callout backgrounds.

Color codes for amber-200

Color codes for amber-200
Tailwind v4 token--color-amber-200
OKLCH (source value)oklch(92.4% 0.12 95.746)
HEX#FEE685
RGBrgb(254, 230, 133)
HSLhsl(48, 98%, 76%)
HWBhwb(48 52% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 9%, 48%, 0%)
Decimal16,705,157
Tailwind v3 hex#FDE68A
Utility classesbg-amber-200, text-amber-200, border-amber-200

Tailwind amber scale

Contrast and accessibility

On amber-200, black text has a contrast ratio of 16.87:1 and passes AAA at any text size; white text reaches 1.24: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 amber-20016.87:1PassPassPassPass91.5
White text on amber-2001.24:1FailFailFailFail−14.0
Amber-200 text on white1.24:1FailFailFailFail12.1
Amber-200 text on black16.87:1PassPassPassPass−91.9

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #fee78b
  2. 15%
    #feea97
  3. 25%
    #feeca4
  4. 35%
    #feefb0
  5. 45%
    #fef1bc
  6. 55%
    #fff4c8
  7. 65%
    #fff6d4
  8. 75%
    #fff9e1
  9. 85%
    #fffbed
  10. 95%
    #fffef9

Shades (mixed with black)

  1. 5%
    #f1db7e
  2. 15%
    #d8c471
  3. 25%
    #bfad64
  4. 35%
    #a59656
  5. 45%
    #8c7f49
  6. 55%
    #72673c
  7. 65%
    #59512f
  8. 75%
    #403a21
  9. 85%
    #262314
  10. 95%
    #0d0c07

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, amber-200's complementary color is #DBE4FF (close to lavender), its analogous colors are #FFDCAC and #D2F59B, and its triadic partners are #9BF6FF and #FFD0FD. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#dbe4ff
Analogous−30°, +30°#ffdcac#d2f59b
Triadic+120°, +240°#9bf6ff#ffd0fd
Split-complementary+150°, +210°#c5ebff#f2daff

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 amber-200 is a warm color: its hue is 48° 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#f0e68c2.0
palegoldenrod#eee8aa4.2
navajowhite#ffdead5.6

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-200#fff0852.6
lime-200#d8f9996.3
orange-200#ffd6a76.5

Code snippets

Tailwind CSS
<div class="bg-amber-200 text-black">...</div>
<p class="text-amber-200 border-amber-200">...</p>
CSS
.element {
  color: var(--color-amber-200);
  background-color: oklch(92.4% 0.12 95.746);
  border-color: #fee685;
  outline-color: rgb(254 230 133);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber200 = Color(red: 0.996, green: 0.902, blue: 0.522)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const amber200 = Color(0xFFFEE685);
Android XML
<!-- res/values/colors.xml -->
<color name="amber_200">#FEE685</color>

Frequently asked questions

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

Last reviewed by Arielton Oberek.