yellow-600
#d08700Tailwind CSS v4.3.3 yellow-600 is oklch(68.1% 0.162 75.834) in OKLCH, the format Tailwind uses, and #d08700 in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-yellow-600/50.
Text on yellow-600
- Aawhite2.93:1Hard to read
- Aablack7.16:1Readable · AA
- Aayellow-9504.97:1Readable · AA
Most readable text from the yellow scale: yellow-950
Tailwind yellow scale
Step 600 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind yellow-600?
yellow-600 is #d08700 in HEX, rgb(208 135 0) in RGB and oklch(68.1% 0.162 75.834) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind yellow-600 accessible for text?
White text on yellow-600 has a contrast ratio of 2.93:1 and black text 7.16: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-600 in Tailwind CSS?
Add bg-yellow-600, text-yellow-600 or border-yellow-600 to an element. In your own CSS use var(--color-yellow-600), the CSS variable Tailwind v4 creates for every color.