zinc-900
#18181bTailwind CSS v4.3.3 zinc-900 is oklch(21% 0.006 285.885) in OKLCH, the format Tailwind uses, and #18181b in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-zinc-900/50.
Text on zinc-900
- Aawhite17.73:1Readable · AA
- Aablack1.18:1Hard to read
- Aazinc-5016.98:1Readable · AA
Most readable text from the zinc scale: zinc-50
Tailwind zinc scale
Step 900 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind zinc-900?
zinc-900 is #18181b in HEX, rgb(24 24 27) in RGB and oklch(21% 0.006 285.885) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind zinc-900 accessible for text?
White text on zinc-900 has a contrast ratio of 17.73:1 and black text 1.18:1. WCAG AA needs 4.5:1 for normal text and 3:1 for large text, so white text is the better choice here.
How do I use zinc-900 in Tailwind CSS?
Add bg-zinc-900, text-zinc-900 or border-zinc-900 to an element. In your own CSS use var(--color-zinc-900), the CSS variable Tailwind v4 creates for every color.