Skip to main content

bg-red-400

Tailwind Red 400

#F87171·Red family·Shade 400

Color Values

HEX
#F87171
RGB
rgb(248, 113, 113)
HSL
hsl(0, 91%, 71%)
OKLCH
oklch(0.711 0.166 22)
CMYK
cmyk(0%, 54%, 54%, 3%)
CSS Variable
var(--color-red-400)
Tailwind Class
bg-red-400

Accessibility Score

60/100

Good

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

On White

2.77:1

Fail

On Black

7.59:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-red-400

Text

text-red-400

Border

border-red-400

Ring

ring-red-400

Outline

outline-red-400

Fill

fill-red-400

Stroke

stroke-red-400

From (gradient)

from-red-400

Via (gradient)

via-red-400

To (gradient)

to-red-400

Placeholder

placeholder-red-400

Caret

caret-red-400

Accent

accent-red-400

Decoration

decoration-red-400

Shadow Color

shadow-red-400

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'red-400': '#f87171', }, }, }, };

CSS Equivalent

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

/* RGB */
background-color: rgb(248, 113, 113);

/* HSL */
background-color: hsl(0, 91%, 71%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.711 0.166 22);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-red-400);

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

OKLCH — Modern Color Space

Lightness (L)

0.711

71% perceived brightness

Chroma (C)

0.166

Color intensity / saturation

Hue (H)

22°

Angle on perceptual hue wheel

oklch(0.711 0.166 22)

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

Mid-tone accent

Shade 400 of the Red palette

Recommended Uses

  • Icon fills on white
  • Secondary buttons (large text)
  • Chart & data visualization bars
  • Decorative UI elements

Avoid

Body text on white — often fails WCAG AA for normal text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #F87171

Frequently Asked Questions

What is the hex code for Tailwind Red 400?
Tailwind Red 400 has the hex code #F87171. Its RGB value is rgb(248, 113, 113) and its HSL value is hsl(0, 91%, 71%).
What Tailwind utility classes use Red 400?
Use bg-red-400 for backgrounds, text-red-400 for text color, border-red-400 for borders, and ring-red-400 for focus rings. In Tailwind v4 the CSS variable var(--color-red-400) is available natively.
Is Tailwind Red 400 WCAG accessible?
Tailwind Red 400 achieves a 2.77:1 contrast ratio on white (Fail) and 7.59:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Red 400?
Tailwind Red 400 in OKLCH is oklch(0.711 0.166 22) — lightness 0.711, chroma 0.166, hue 22°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Red 400 used for?
At shade 400, Tailwind Red 400 is best described as "Mid-tone accent". Recommended uses: Icon fills on white, Secondary buttons (large text), Chart & data visualization bars.