Skip to main content

bg-amber-300

Tailwind Amber 300

#FCD34D·Amber family·Shade 300

Color Values

HEX
#FCD34D
RGB
rgb(252, 211, 77)
HSL
hsl(46, 97%, 65%)
OKLCH
oklch(0.879 0.153 92)
CMYK
cmyk(0%, 16%, 69%, 1%)
CSS Variable
var(--color-amber-300)
Tailwind Class
bg-amber-300

Accessibility Score

60/100

Good

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

On White

1.44:1

Fail

On Black

14.56:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-amber-300

Text

text-amber-300

Border

border-amber-300

Ring

ring-amber-300

Outline

outline-amber-300

Fill

fill-amber-300

Stroke

stroke-amber-300

From (gradient)

from-amber-300

Via (gradient)

via-amber-300

To (gradient)

to-amber-300

Placeholder

placeholder-amber-300

Caret

caret-amber-300

Accent

accent-amber-300

Decoration

decoration-amber-300

Shadow Color

shadow-amber-300

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

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

/* RGB */
background-color: rgb(252, 211, 77);

/* HSL */
background-color: hsl(46, 97%, 65%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.879 0.153 92);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.879

88% perceived brightness

Chroma (C)

0.153

Color intensity / saturation

Hue (H)

92°

Angle on perceptual hue wheel

oklch(0.879 0.153 92)

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

Light mid-tone accent

Shade 300 of the Amber palette

Recommended Uses

  • Secondary button outlines
  • Icon strokes on dark backgrounds
  • Progress bar fills
  • Selected state highlights

Avoid

Normal-size text on white — generally below WCAG AA threshold.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #FCD34D

Frequently Asked Questions

What is the hex code for Tailwind Amber 300?
Tailwind Amber 300 has the hex code #FCD34D. Its RGB value is rgb(252, 211, 77) and its HSL value is hsl(46, 97%, 65%).
What Tailwind utility classes use Amber 300?
Use bg-amber-300 for backgrounds, text-amber-300 for text color, border-amber-300 for borders, and ring-amber-300 for focus rings. In Tailwind v4 the CSS variable var(--color-amber-300) is available natively.
Is Tailwind Amber 300 WCAG accessible?
Tailwind Amber 300 achieves a 1.44:1 contrast ratio on white (Fail) and 14.56:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Amber 300?
Tailwind Amber 300 in OKLCH is oklch(0.879 0.153 92) — lightness 0.879, chroma 0.153, hue 92°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Amber 300 used for?
At shade 300, Tailwind Amber 300 is best described as "Light mid-tone accent". Recommended uses: Secondary button outlines, Icon strokes on dark backgrounds, Progress bar fills.