green-300
#7bf1a8Tailwind CSS v4.3.3 green-300 is oklch(87.1% 0.15 154.449) in OKLCH, the format Tailwind uses, and #7bf1a8 in HEX.
- Class
- OKLCH
- HEX
- RGB
- HSL
- CSS
Classes
Click to copy. Add /50 for 50% opacity, for example bg-green-300/50.
Text on green-300
- Aawhite1.4:1Hard to read
- Aablack15.02:1Readable · AA
- Aagreen-95010.67:1Readable · AA
Most readable text from the green scale: green-950
Tailwind green scale
Step 300 in other Tailwind colors
Questions and answers
What is the hex code of Tailwind green-300?
green-300 is #7bf1a8 in HEX, rgb(123 241 168) in RGB and oklch(87.1% 0.15 154.449) in OKLCH. Tailwind CSS v4.3.3 defines its colors in OKLCH, so the HEX value is the closest sRGB match.
Is Tailwind green-300 accessible for text?
White text on green-300 has a contrast ratio of 1.4:1 and black text 15.02: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 green-300 in Tailwind CSS?
Add bg-green-300, text-green-300 or border-green-300 to an element. In your own CSS use var(--color-green-300), the CSS variable Tailwind v4 creates for every color.