Tailwind Amber 400

amber-400 · #FBBF24 · rgb(251, 191, 36)

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

HEX#FBBF24
RGBrgb(251, 191, 36)
HSLhsl(43, 96%, 56%)
CMYKcmyk(0%, 24%, 86%, 2%)
CSS variable (v4)var(--color-amber-400)
Color nameSaffron (closest)

Classes

bg-amber-400
text-amber-400
border-amber-400
ring-amber-400
from-amber-400 via-amber-400 to-amber-400
bg-amber-400/50   /* 50% opacity */
White text · 1.67:1 · fails
Black text · 12.58:1 · AAA
text-amber-900 · 5.43:1 · AA

Check contrast with any color →

Tailwind amber-400: questions & answers

What is the HEX code of Tailwind amber-400?

Tailwind amber-400 is #FBBF24, which is rgb(251, 191, 36) or hsl(43, 96%, 56%).

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

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

What text color works on bg-amber-400?

amber-900 (#78350F) is the closest shade of the same color with readable contrast (5.43:1). Plain black text gives 12.58:1.