Skip to content

Tailwind CSS v4 default palette

Tailwind amber-50: #FFFBEB

In Tailwind CSS v4, amber-50 is defined as --color-amber-50: oklch(98.7% 0.022 95.277), which is #FFFBEB in hex and rgb(255, 251, 235): an off-white with a beige tint. In Tailwind v3, amber-50 was #FFFBEB.

amber-50#FFFBEB

In OKLCH, amber-50 has a lightness of 98.7%, chroma 0.022 and hue 95.3°.

This OKLCH value lies outside sRGB. The hex #FFFBEB is the sRGB fallback from the CSS Color 4 gamut mapping algorithm; on Display P3 screens browsers show a more saturated color, close to color(display-p3 0.9978 0.985 0.9263).

In v3, amber-50 was #FFFBEB. 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-50

Color codes for amber-50
Tailwind v4 token--color-amber-50
OKLCH (source value)oklch(98.7% 0.022 95.277)
HEX#FFFBEB
RGBrgb(255, 251, 235)
HSLhsl(48, 100%, 96%)
HWBhwb(48 92% 0%)
CMYK (naive, no ICC profile)cmyk(0%, 2%, 8%, 0%)
Decimal16,776,171
Display P3color(display-p3 0.9978 0.985 0.9263)
Tailwind v3 hex#FFFBEB
Utility classesbg-amber-50, text-amber-50, border-amber-50

Tailwind amber scale

Contrast and accessibility

On amber-50, black text has a contrast ratio of 20.25:1 and passes AAA at any text size; white text reaches 1.03: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-5020.25:1PassPassPassPass103.5
White text on amber-501.03:1FailFailFailFail0.0
Amber-50 text on white1.03:1FailFailFailFail0.0
Amber-50 text on black20.25:1PassPassPassPass−105.1

Tints and shades

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

Tints (mixed with white)

  1. 5%
    #fffbec
  2. 15%
    #fffcee
  3. 25%
    #fffcf0
  4. 35%
    #fffcf2
  5. 45%
    #fffdf4
  6. 55%
    #fffdf6
  7. 65%
    #fffef8
  8. 75%
    #fffefa
  9. 85%
    #fffefc
  10. 95%
    #fffffe

Shades (mixed with black)

  1. 5%
    #f2eedf
  2. 15%
    #d9d5c8
  3. 25%
    #bfbcb0
  4. 35%
    #a6a399
  5. 45%
    #8c8a81
  6. 55%
    #73716a
  7. 65%
    #595852
  8. 75%
    #403f3b
  9. 85%
    #262623
  10. 95%
    #0d0d0c

Color harmonies

Rotating the hue in OKLCH while keeping lightness and chroma, amber-50's complementary color is #F6FAFF (close to ghostwhite), its analogous colors are #FFF8EC and #F7FEEE, and its triadic partners are #EBFFFF and #FFF6FF. For text on top, black gives the higher contrast.

Color harmonies
HarmonyRotationColor
Complementary+180°#f6faff
Analogous−30°, +30°#fff8ec#f7feee
Triadic+120°, +240°#ebffff#fff6ff
Split-complementary+150°, +210°#effdff#fef7ff

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-50 is close to neutral: its OKLCH chroma is only 0.022, so its temperature comes from context. The faint 48° hue gives it a slightly warm cast.

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
floralwhite#fffaf00.8
ivory#fffff01.0
oldlace#fdf5e61.5

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
yellow-50#fefce80.5
orange-50#fff7ed1.2
lime-50#f7fee71.5

Code snippets

Tailwind CSS
<div class="bg-amber-50 text-black">...</div>
<p class="text-amber-50 border-amber-50">...</p>
CSS
.element {
  color: var(--color-amber-50);
  background-color: oklch(98.7% 0.022 95.277);
  border-color: #fffbeb;
  outline-color: rgb(255 251 235);
}
SwiftUI
import SwiftUI

extension Color {
  static let amber50 = Color(red: 1.000, green: 0.984, blue: 0.922)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

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

const amber50 = Color(0xFFFFFBEB);
Android XML
<!-- res/values/colors.xml -->
<color name="amber_50">#FFFBEB</color>

Frequently asked questions

What is the hex code for Tailwind amber-50?
In Tailwind CSS v4, amber-50 is oklch(98.7% 0.022 95.277), which converts to #FFFBEB (rgb(255, 251, 235)) in sRGB after gamut mapping, because the OKLCH value is outside sRGB. In Tailwind v3 the same name was #FFFBEB.
What is the difference between amber-50 in Tailwind v3 and v4?
v3 used the hex #FFFBEB; v4 redefined the palette in OKLCH as oklch(98.7% 0.022 95.277). In v3, amber-50 was #FFFBEB. The v4 value is ΔE OK 0.1 away, below the point where most people can tell them apart.
How do I use amber-50 in plain CSS?
Tailwind v4 defines every palette color as a theme variable, so in CSS you write var(--color-amber-50). By default Tailwind only emits the variables your project uses; @theme static emits all of them.
Can you use white text on amber-50?
White text on amber-50 has a contrast ratio of 1.03:1, which fails AA even for large text under WCAG 2.2. Black text reaches 20.25:1 and passes both AA and AAA. In APCA terms that is Lc 0.0 for white and Lc 103.5 for black.
Which CSS named color is closest to amber-50?
The closest is floralwhite (#FFFAF0) at ΔE OK 0.8, followed by ivory and oldlace.

Last reviewed by Arielton Oberek.