Skip to main content

bg-yellow-50

Tailwind Yellow 50

#FEFCE8·Yellow family·Shade 50

Color Values

HEX
#FEFCE8
RGB
rgb(254, 252, 232)
HSL
hsl(55, 92%, 95%)
OKLCH
oklch(0.987 0.026 102)
CMYK
cmyk(0%, 1%, 9%, 0%)
CSS Variable
var(--color-yellow-50)
Tailwind Class
bg-yellow-50

Accessibility Score

60/100

Good

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

On White

1.03:1

Fail

On Black

20.3:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-yellow-50

Text

text-yellow-50

Border

border-yellow-50

Ring

ring-yellow-50

Outline

outline-yellow-50

Fill

fill-yellow-50

Stroke

stroke-yellow-50

From (gradient)

from-yellow-50

Via (gradient)

via-yellow-50

To (gradient)

to-yellow-50

Placeholder

placeholder-yellow-50

Caret

caret-yellow-50

Accent

accent-yellow-50

Decoration

decoration-yellow-50

Shadow Color

shadow-yellow-50

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'yellow-50': '#fefce8', }, }, }, };

CSS Equivalent

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

/* RGB */
background-color: rgb(254, 252, 232);

/* HSL */
background-color: hsl(55, 92%, 95%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.987 0.026 102);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-yellow-50);

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

OKLCH — Modern Color Space

Lightness (L)

0.987

99% perceived brightness

Chroma (C)

0.026

Color intensity / saturation

Hue (H)

102°

Angle on perceptual hue wheel

oklch(0.987 0.026 102)

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

Ultra-light background tint

Shade 50 of the Yellow palette

Recommended Uses

  • Page backgrounds
  • Subtle section fills
  • Notification banners
  • Hover state backgrounds
  • Table row alternates

Avoid

Text on white — contrast is too low for readability.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #FEFCE8

Frequently Asked Questions

What is the hex code for Tailwind Yellow 50?
Tailwind Yellow 50 has the hex code #FEFCE8. Its RGB value is rgb(254, 252, 232) and its HSL value is hsl(55, 92%, 95%).
What Tailwind utility classes use Yellow 50?
Use bg-yellow-50 for backgrounds, text-yellow-50 for text color, border-yellow-50 for borders, and ring-yellow-50 for focus rings. In Tailwind v4 the CSS variable var(--color-yellow-50) is available natively.
Is Tailwind Yellow 50 WCAG accessible?
Tailwind Yellow 50 achieves a 1.03:1 contrast ratio on white (Fail) and 20.3:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Yellow 50?
Tailwind Yellow 50 in OKLCH is oklch(0.987 0.026 102) — lightness 0.987, chroma 0.026, hue 102°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Yellow 50 used for?
At shade 50, Tailwind Yellow 50 is best described as "Ultra-light background tint". Recommended uses: Page backgrounds, Subtle section fills, Notification banners.