Tailwind Yellow 200

yellow-200 · #FEF08A · rgb(254, 240, 138)

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

HEX#FEF08A
RGBrgb(254, 240, 138)
HSLhsl(53, 98%, 77%)
CMYKcmyk(0%, 6%, 46%, 0%)
CSS variable (v4)var(--color-yellow-200)
Color namePastel Yellow (closest)

Classes

bg-yellow-200
text-yellow-200
border-yellow-200
ring-yellow-200
from-yellow-200 via-yellow-200 to-yellow-200
bg-yellow-200/50   /* 50% opacity */
White text · 1.16:1 · fails
Black text · 18.05:1 · AAA
text-yellow-800 · 5.89:1 · AA

Check contrast with any color →

Tailwind yellow-200: questions & answers

What is the HEX code of Tailwind yellow-200?

Tailwind yellow-200 is #FEF08A, which is rgb(254, 240, 138) or hsl(53, 98%, 77%).

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

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

What text color works on bg-yellow-200?

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