Skip to main content

bg-amber-500

Tailwind Amber 500

#F59E0B·Amber family·Shade 500

Color Values

HEX
#F59E0B
RGB
rgb(245, 158, 11)
HSL
hsl(38, 92%, 50%)
OKLCH
oklch(0.769 0.165 70)
CMYK
cmyk(0%, 36%, 96%, 4%)
CSS Variable
var(--color-amber-500)
Tailwind Class
bg-amber-500

Accessibility Score

60/100

Good

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

On White

2.15:1

Fail

On Black

9.78:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-amber-500

Text

text-amber-500

Border

border-amber-500

Ring

ring-amber-500

Outline

outline-amber-500

Fill

fill-amber-500

Stroke

stroke-amber-500

From (gradient)

from-amber-500

Via (gradient)

via-amber-500

To (gradient)

to-amber-500

Placeholder

placeholder-amber-500

Caret

caret-amber-500

Accent

accent-amber-500

Decoration

decoration-amber-500

Shadow Color

shadow-amber-500

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

/* RGB */
background-color: rgb(245, 158, 11);

/* HSL */
background-color: hsl(38, 92%, 50%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.769 0.165 70);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.769

77% perceived brightness

Chroma (C)

0.165

Color intensity / saturation

Hue (H)

70°

Angle on perceptual hue wheel

oklch(0.769 0.165 70)

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

Primary brand color

Shade 500 of the Amber palette

Recommended Uses

  • CTA buttons
  • Active navigation links
  • Primary brand accents
  • Interactive element fills
  • Highlighted badges

Avoid

Text on dark/black backgrounds — check contrast before use.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #F59E0B

Frequently Asked Questions

What is the hex code for Tailwind Amber 500?
Tailwind Amber 500 has the hex code #F59E0B. Its RGB value is rgb(245, 158, 11) and its HSL value is hsl(38, 92%, 50%).
What Tailwind utility classes use Amber 500?
Use bg-amber-500 for backgrounds, text-amber-500 for text color, border-amber-500 for borders, and ring-amber-500 for focus rings. In Tailwind v4 the CSS variable var(--color-amber-500) is available natively.
Is Tailwind Amber 500 WCAG accessible?
Tailwind Amber 500 achieves a 2.15:1 contrast ratio on white (Fail) and 9.78:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Amber 500?
Tailwind Amber 500 in OKLCH is oklch(0.769 0.165 70) — lightness 0.769, chroma 0.165, hue 70°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Amber 500 used for?
At shade 500, Tailwind Amber 500 is best described as "Primary brand color". Recommended uses: CTA buttons, Active navigation links, Primary brand accents.