purple-300
#dab2ffTailwind CSS v4.3.3 purple-300 is oklch(82.7% 0.119 306.383) in OKLCH, the format Tailwind uses, and #dab2ff in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-purple-300/50.
Text on purple-300
- Aawhite1.78:1Hard to read
- Aablack11.78:1Readable · AA
- Aapurple-9508.43:1Readable · AA
Most readable text from the purple scale: purple-950
Tailwind purple scale
Step 300 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind purple-300?
purple-300 is #dab2ff in HEX, rgb(218 178 255) in RGB and oklch(82.7% 0.119 306.383) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind purple-300 accessible for text?
White text on purple-300 has a contrast ratio of 1.78:1 and black text 11.78: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 purple-300 in Tailwind CSS?
Add bg-purple-300, text-purple-300 or border-purple-300 to an element. In your own CSS use var(--color-purple-300), the CSS variable Tailwind v4 creates for every color.