zinc-800
#27272aTailwind CSS v4.3.3 zinc-800 is oklch(27.4% 0.006 286.033) in OKLCH, the format Tailwind uses, and #27272a in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-zinc-800/50.
Text on zinc-800
- Aawhite14.89:1Readable · AA
- Aablack1.41:1Hard to read
- Aazinc-5014.26:1Readable · AA
Most readable text from the zinc scale: zinc-50
Tailwind zinc scale
Step 800 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind zinc-800?
zinc-800 is #27272a in HEX, rgb(39 39 42) in RGB and oklch(27.4% 0.006 286.033) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind zinc-800 accessible for text?
White text on zinc-800 has a contrast ratio of 14.89:1 and black text 1.41: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-800 in Tailwind CSS?
Add bg-zinc-800, text-zinc-800 or border-zinc-800 to an element. In your own CSS use var(--color-zinc-800), the CSS variable Tailwind v4 creates for every color.