Tailwind Yellow 300

yellow-300 · #FDE047 · rgb(253, 224, 71)

yellow-300 is a light vivid yellow from the Tailwind CSS default palette, hex code #FDE047.

HEX#FDE047
RGBrgb(253, 224, 71)
HSLhsl(50, 98%, 64%)
CMYKcmyk(0%, 11%, 72%, 1%)
CSS variable (v4)var(--color-yellow-300)
Color nameBanana Yellow (closest)

Classes

bg-yellow-300
text-yellow-300
border-yellow-300
ring-yellow-300
from-yellow-300 via-yellow-300 to-yellow-300
bg-yellow-300/50   /* 50% opacity */
White text · 1.32:1 · fails
Black text · 15.93:1 · AAA
text-yellow-800 · 5.2:1 · AA

Check contrast with any color →

Tailwind yellow-300: questions & answers

What is the HEX code of Tailwind yellow-300?

Tailwind yellow-300 is #FDE047, which is rgb(253, 224, 71) or hsl(50, 98%, 64%).

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

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

What text color works on bg-yellow-300?

yellow-800 (#854D0E) is the closest shade of the same color with readable contrast (5.2:1). Plain black text gives 15.93:1.