Tailwind Green 400

green-400 · #4ADE80 · rgb(74, 222, 128)

green-400 is a medium green from the Tailwind CSS default palette, hex code #4ADE80.

HEX#4ADE80
RGBrgb(74, 222, 128)
HSLhsl(142, 69%, 58%)
CMYKcmyk(67%, 0%, 42%, 13%)
CSS variable (v4)var(--color-green-400)
Color namePastel Green (closest)

Classes

bg-green-400
text-green-400
border-green-400
ring-green-400
from-green-400 via-green-400 to-green-400
bg-green-400/50   /* 50% opacity */
White text · 1.74:1 · fails
Black text · 12.05:1 · AAA
text-green-900 · 5.23:1 · AA

Check contrast with any color →

Tailwind green-400: questions & answers

What is the HEX code of Tailwind green-400?

Tailwind green-400 is #4ADE80, which is rgb(74, 222, 128) or hsl(142, 69%, 58%).

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

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

What text color works on bg-green-400?

green-900 (#14532D) is the closest shade of the same color with readable contrast (5.23:1). Plain black text gives 12.05:1.