olive-400
#abab9cTailwind CSS v4.3.3 olive-400 is oklch(73.7% 0.021 106.9) in OKLCH, the format Tailwind uses, and #abab9c in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-olive-400/50.
Text on olive-400
- Aawhite2.32:1Hard to read
- Aablack9.04:1Readable · AA
- Aaolive-9508.43:1Readable · AA
Most readable text from the olive scale: olive-950
Tailwind olive scale
Step 400 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind olive-400?
olive-400 is #abab9c in HEX, rgb(171 171 156) in RGB and oklch(73.7% 0.021 106.9) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind olive-400 accessible for text?
White text on olive-400 has a contrast ratio of 2.32:1 and black text 9.04: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 olive-400 in Tailwind CSS?
Add bg-olive-400, text-olive-400 or border-olive-400 to an element. In your own CSS use var(--color-olive-400), the CSS variable Tailwind v4 creates for every color.