Tailwind Red 400

red-400 · #F87171 · rgb(248, 113, 113)

red-400 is a light vivid red from the Tailwind CSS default palette, hex code #F87171.

HEX#F87171
RGBrgb(248, 113, 113)
HSLhsl(0, 91%, 71%)
CMYKcmyk(0%, 54%, 54%, 3%)
CSS variable (v4)var(--color-red-400)
Color nameSalmon (closest)

Classes

bg-red-400
text-red-400
border-red-400
ring-red-400
from-red-400 via-red-400 to-red-400
bg-red-400/50   /* 50% opacity */
White text · 2.77:1 · fails
Black text · 7.59:1 · AAA
text-red-950 · 5.84:1 · AA

Check contrast with any color →

Tailwind red-400: questions & answers

What is the HEX code of Tailwind red-400?

Tailwind red-400 is #F87171, which is rgb(248, 113, 113) or hsl(0, 91%, 71%).

How do I use red-400 as a background in Tailwind?

Add the class bg-red-400 to the element. Use text-red-400 for text and border-red-400 for borders.

What text color works on bg-red-400?

red-950 (#450A0A) is the closest shade of the same color with readable contrast (5.84:1). Plain black text gives 7.59:1.