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
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
1.03:1
On Black
20.3:1
Tailwind Usage — All Utilities
Background
bg-yellow-50Text
text-yellow-50Border
border-yellow-50Ring
ring-yellow-50Outline
outline-yellow-50Fill
fill-yellow-50Stroke
stroke-yellow-50From (gradient)
from-yellow-50Via (gradient)
via-yellow-50To (gradient)
to-yellow-50Placeholder
placeholder-yellow-50Caret
caret-yellow-50Accent
accent-yellow-50Decoration
decoration-yellow-50Shadow Color
shadow-yellow-50Tailwind 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
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #FEFCE8
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Yellow 50
Nearest Tailwind equivalent — #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.