Tailwind Green 500

green-500 · #22C55E · rgb(34, 197, 94)

green-500 is a medium vivid green from the Tailwind CSS default palette, hex code #22C55E.

HEX#22C55E
RGBrgb(34, 197, 94)
HSLhsl(142, 71%, 45%)
CMYKcmyk(83%, 0%, 52%, 23%)
CSS variable (v4)var(--color-green-500)
Color nameJade Green (closest)

Classes

bg-green-500
text-green-500
border-green-500
ring-green-500
from-green-500 via-green-500 to-green-500
bg-green-500/50   /* 50% opacity */
White text · 2.28:1 · fails
Black text · 9.22:1 · AAA
text-green-950 · 6.54:1 · AA

Check contrast with any color →

Tailwind green-500: questions & answers

What is the HEX code of Tailwind green-500?

Tailwind green-500 is #22C55E, which is rgb(34, 197, 94) or hsl(142, 71%, 45%).

How do I use green-500 as a background in Tailwind?

Add the class bg-green-500 to the element. Use text-green-500 for text and border-green-500 for borders.

What text color works on bg-green-500?

green-950 (#052E16) is the closest shade of the same color with readable contrast (6.54:1). Plain black text gives 9.22:1.