Skip to main content

bg-amber-400

Tailwind Amber 400

#FBBF24·Amber family·Shade 400

Color Values

HEX
#FBBF24
RGB
rgb(251, 191, 36)
HSL
hsl(43, 96%, 56%)
OKLCH
oklch(0.837 0.164 84)
CMYK
cmyk(0%, 24%, 86%, 2%)
CSS Variable
var(--color-amber-400)
Tailwind Class
bg-amber-400

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

1.67:1

Fail

On Black

12.58:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-amber-400

Text

text-amber-400

Border

border-amber-400

Ring

ring-amber-400

Outline

outline-amber-400

Fill

fill-amber-400

Stroke

stroke-amber-400

From (gradient)

from-amber-400

Via (gradient)

via-amber-400

To (gradient)

to-amber-400

Placeholder

placeholder-amber-400

Caret

caret-amber-400

Accent

accent-amber-400

Decoration

decoration-amber-400

Shadow Color

shadow-amber-400

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'amber-400': '#fbbf24', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #FBBF24;

/* RGB */
background-color: rgb(251, 191, 36);

/* HSL */
background-color: hsl(43, 96%, 56%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.837 0.164 84);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-amber-400);

/* Gradient example */
background: linear-gradient(135deg, #fffbeb 0%, #f59e0b 100%);

OKLCH — Modern Color Space

Lightness (L)

0.837

84% perceived brightness

Chroma (C)

0.164

Color intensity / saturation

Hue (H)

84°

Angle on perceptual hue wheel

oklch(0.837 0.164 84)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Mid-tone accent

Shade 400 of the Amber palette

Recommended Uses

  • Icon fills on white
  • Secondary buttons (large text)
  • Chart & data visualization bars
  • Decorative UI elements

Avoid

Body text on white — often fails WCAG AA for normal text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #FBBF24

Frequently Asked Questions

What is the hex code for Tailwind Amber 400?
Tailwind Amber 400 has the hex code #FBBF24. Its RGB value is rgb(251, 191, 36) and its HSL value is hsl(43, 96%, 56%).
What Tailwind utility classes use Amber 400?
Use bg-amber-400 for backgrounds, text-amber-400 for text color, border-amber-400 for borders, and ring-amber-400 for focus rings. In Tailwind v4 the CSS variable var(--color-amber-400) is available natively.
Is Tailwind Amber 400 WCAG accessible?
Tailwind Amber 400 achieves a 1.67:1 contrast ratio on white (Fail) and 12.58:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Amber 400?
Tailwind Amber 400 in OKLCH is oklch(0.837 0.164 84) — lightness 0.837, chroma 0.164, hue 84°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Amber 400 used for?
At shade 400, Tailwind Amber 400 is best described as "Mid-tone accent". Recommended uses: Icon fills on white, Secondary buttons (large text), Chart & data visualization bars.