Tailwind Yellow 500

yellow-500 · #EAB308 · rgb(234, 179, 8)

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

HEX#EAB308
RGBrgb(234, 179, 8)
HSLhsl(45, 93%, 47%)
CMYKcmyk(0%, 24%, 97%, 8%)
CSS variable (v4)var(--color-yellow-500)
Color nameMustard Yellow (closest)

Classes

bg-yellow-500
text-yellow-500
border-yellow-500
ring-yellow-500
from-yellow-500 via-yellow-500 to-yellow-500
bg-yellow-500/50   /* 50% opacity */
White text · 1.92:1 · fails
Black text · 10.95:1 · AAA
text-yellow-900 · 4.52:1 · AA

Check contrast with any color →

Tailwind yellow-500: questions & answers

What is the HEX code of Tailwind yellow-500?

Tailwind yellow-500 is #EAB308, which is rgb(234, 179, 8) or hsl(45, 93%, 47%).

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

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

What text color works on bg-yellow-500?

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