purple-900
#59168bTailwind CSS v4.3.3 purple-900 is oklch(38.1% 0.176 304.987) in OKLCH, the format Tailwind uses, and #59168b in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-purple-900/50.
Text on purple-900
- Aawhite10.94:1Readable · AA
- Aablack1.92:1Hard to read
- Aapurple-5010.2:1Readable · AA
Most readable text from the purple scale: purple-50
Tailwind purple scale
Step 900 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind purple-900?
purple-900 is #59168b in HEX, rgb(89 22 139) in RGB and oklch(38.1% 0.176 304.987) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind purple-900 accessible for text?
White text on purple-900 has a contrast ratio of 10.94:1 and black text 1.92: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 purple-900 in Tailwind CSS?
Add bg-purple-900, text-purple-900 or border-purple-900 to an element. In your own CSS use var(--color-purple-900), the CSS variable Tailwind v4 creates for every color.