Color Values
- HEX
- #FEF2F2
- RGB
- rgb(254, 242, 242)
- HSL
- hsl(0, 86%, 97%)
- OKLCH
- oklch(0.971 0.013 18)
- CMYK
- cmyk(0%, 5%, 5%, 0%)
- CSS Variable
- var(--color-red-50)
- Tailwind Class
- bg-red-50
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
1.09:1
On Black
19.2:1
Tailwind Usage — All Utilities
Background
bg-red-50Text
text-red-50Border
border-red-50Ring
ring-red-50Outline
outline-red-50Fill
fill-red-50Stroke
stroke-red-50From (gradient)
from-red-50Via (gradient)
via-red-50To (gradient)
to-red-50Placeholder
placeholder-red-50Caret
caret-red-50Accent
accent-red-50Decoration
decoration-red-50Shadow Color
shadow-red-50Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'red-50': '#fef2f2',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #FEF2F2;
/* RGB */
background-color: rgb(254, 242, 242);
/* HSL */
background-color: hsl(0, 86%, 97%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.971 0.013 18);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-red-50);
/* Gradient example */
background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);OKLCH — Modern Color Space
Lightness (L)
0.971
97% perceived brightness
Chroma (C)
0.013
Color intensity / saturation
Hue (H)
18°
Angle on perceptual hue wheel
oklch(0.971 0.013 18)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 Red 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 — #FEF2F2
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Red 50
Nearest Tailwind equivalent — #FEF2F2
Frequently Asked Questions
- What is the hex code for Tailwind Red 50?
- Tailwind Red 50 has the hex code #FEF2F2. Its RGB value is rgb(254, 242, 242) and its HSL value is hsl(0, 86%, 97%).
- What Tailwind utility classes use Red 50?
- Use bg-red-50 for backgrounds, text-red-50 for text color, border-red-50 for borders, and ring-red-50 for focus rings. In Tailwind v4 the CSS variable var(--color-red-50) is available natively.
- Is Tailwind Red 50 WCAG accessible?
- Tailwind Red 50 achieves a 1.09:1 contrast ratio on white (Fail) and 19.2:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Red 50?
- Tailwind Red 50 in OKLCH is oklch(0.971 0.013 18) — lightness 0.971, chroma 0.013, hue 18°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Red 50 used for?
- At shade 50, Tailwind Red 50 is best described as "Ultra-light background tint". Recommended uses: Page backgrounds, Subtle section fills, Notification banners.