Skip to main content

bg-red-50

Tailwind Red 50

#FEF2F2·Red family·Shade 50

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

60/100

Good

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

On White

1.09:1

Fail

On Black

19.2:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-red-50

Text

text-red-50

Border

border-red-50

Ring

ring-red-50

Outline

outline-red-50

Fill

fill-red-50

Stroke

stroke-red-50

From (gradient)

from-red-50

Via (gradient)

via-red-50

To (gradient)

to-red-50

Placeholder

placeholder-red-50

Caret

caret-red-50

Accent

accent-red-50

Decoration

decoration-red-50

Shadow Color

shadow-red-50

Tailwind 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

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 — #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.