neutral-900
#171717Tailwind CSS v4.3.3 neutral-900 is oklch(20.5% 0 none) in OKLCH, the format Tailwind uses, and #171717 in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-neutral-900/50.
Text on neutral-900
- Aawhite17.91:1Readable · AA
- Aablack1.17:1Hard to read
- Aaneutral-5017.16:1Readable · AA
Most readable text from the neutral scale: neutral-50
Tailwind neutral scale
Step 900 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind neutral-900?
neutral-900 is #171717 in HEX, rgb(23 23 23) in RGB and oklch(20.5% 0 none) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind neutral-900 accessible for text?
White text on neutral-900 has a contrast ratio of 17.91:1 and black text 1.17: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 neutral-900 in Tailwind CSS?
Add bg-neutral-900, text-neutral-900 or border-neutral-900 to an element. In your own CSS use var(--color-neutral-900), the CSS variable Tailwind v4 creates for every color.