yellow-100
#fef9c2Tailwind CSS v4.3.3 yellow-100 is oklch(97.3% 0.071 103.193) in OKLCH, the format Tailwind uses, and #fef9c2 in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-yellow-100/50.
Text on yellow-100
- Aawhite1.07:1Hard to read
- Aablack19.56:1Readable · AA
- Aayellow-95013.57:1Readable · AA
Most readable text from the yellow scale: yellow-950
Tailwind yellow scale
Step 100 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind yellow-100?
yellow-100 is #fef9c2 in HEX, rgb(254 249 194) in RGB and oklch(97.3% 0.071 103.193) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind yellow-100 accessible for text?
White text on yellow-100 has a contrast ratio of 1.07:1 and black text 19.56:1. WCAG AA needs 4.5:1 for normal text and 3:1 for large text, so black text is the better choice here.
How do I use yellow-100 in Tailwind CSS?
Add bg-yellow-100, text-yellow-100 or border-yellow-100 to an element. In your own CSS use var(--color-yellow-100), the CSS variable Tailwind v4 creates for every color.