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