Tailwind Yellow 400

yellow-400 · #FACC15 · rgb(250, 204, 21)

yellow-400 is a medium vivid yellow from the Tailwind CSS default palette, hex code #FACC15.

HEX#FACC15
RGBrgb(250, 204, 21)
HSLhsl(48, 96%, 53%)
CMYKcmyk(0%, 18%, 92%, 2%)
CSS variable (v4)var(--color-yellow-400)
Color nameSunflower (closest)

Classes

bg-yellow-400
text-yellow-400
border-yellow-400
ring-yellow-400
from-yellow-400 via-yellow-400 to-yellow-400
bg-yellow-400/50   /* 50% opacity */
White text · 1.53:1 · fails
Black text · 13.71:1 · AAA
text-yellow-900 · 5.66:1 · AA

Check contrast with any color →

Tailwind yellow-400: questions & answers

What is the HEX code of Tailwind yellow-400?

Tailwind yellow-400 is #FACC15, which is rgb(250, 204, 21) or hsl(48, 96%, 53%).

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

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

What text color works on bg-yellow-400?

yellow-900 (#713F12) is the closest shade of the same color with readable contrast (5.66:1). Plain black text gives 13.71:1.