Skip to content

Tailwind CSS v4 default palette

Tailwind amber-100: #FEF3C6

In Tailwind CSS v4, amber-100 is defined as --color-amber-100: oklch(96.2% 0.059 95.617), which is #FEF3C6 in hex and rgb(254, 243, 198): an off-white with a beige tint. In Tailwind v3, amber-100 was #FEF3C7.

amber-100#FEF3C6

In OKLCH, amber-100 has a lightness of 96.2%, chroma 0.059 and hue 95.6°.

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

In v3, amber-100 was #FEF3C7. The v4 value is ΔE OK 0.1 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-100

Color codes for amber-100
Tailwind v4 token--color-amber-100
OKLCH (source value)oklch(96.2% 0.059 95.617)
HEX#FEF3C6
RGBrgb(254, 243, 198)
HSLhsl(48, 97%, 89%)
HWBhwb(48 78% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 4%, 22%, 0%)
Decimal16,708,550
Tailwind v3 hex#FEF3C7
Utility classesbg-amber-100, text-amber-100, border-amber-100

Tailwind amber scale

Contrast and accessibility

On amber-100, black text has a contrast ratio of 18.84:1 and passes AAA at any text size; white text reaches 1.11: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-10018.84:1PassPassPassPass98.6
White text on amber-1001.11:1FailFailFailFail0.0
Amber-100 text on white1.11:1FailFailFailFail0.0
Amber-100 text on black18.84:1PassPassPassPass−99.7

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #fef4c9
  2. 15%
    #fef5cf
  3. 25%
    #fef6d4
  4. 35%
    #fef7da
  5. 45%
    #fef8e0
  6. 55%
    #fffae5
  7. 65%
    #fffbeb
  8. 75%
    #fffcf1
  9. 85%
    #fffdf6
  10. 95%
    #fffefc

Shades (mixed with black)

  1. 5%
    #f1e7bc
  2. 15%
    #d8cfa8
  3. 25%
    #bfb695
  4. 35%
    #a59e81
  5. 45%
    #8c866d
  6. 55%
    #726d59
  7. 65%
    #595545
  8. 75%
    #403d32
  9. 85%
    #26241e
  10. 95%
    #0d0c0a

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, amber-100's complementary color is #EBF1FF (close to aliceblue), its analogous colors are #FFECCC and #E9FACF, and its triadic partners are #C6FDFF and #FFE4FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#ebf1ff
Analogous−30°, +30°#ffeccc#e9facf
Triadic+120°, +240°#c6fdff#ffe4ff
Split-complementary+150°, +210°#dcf6ff#faebff

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-100 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
lemonchiffon#fffacd1.7
lightgoldenrodyellow#fafad21.9
papayawhip#ffefd52.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-100#fef9c21.8
orange-100#ffedd42.8
lime-100#ecfcca3.1

Code snippets

Tailwind CSS
<div class="bg-amber-100 text-black">...</div>
<p class="text-amber-100 border-amber-100">...</p>
CSS
.element {
  color: var(--color-amber-100);
  background-color: oklch(96.2% 0.059 95.617);
  border-color: #fef3c6;
  outline-color: rgb(254 243 198);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber100 = Color(red: 0.996, green: 0.953, blue: 0.776)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const amber100 = Color(0xFFFEF3C6);
Android XML
<!-- res/values/colors.xml -->
<color name="amber_100">#FEF3C6</color>

Frequently asked questions

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

Last reviewed by Arielton Oberek.