Skip to main content

bg-green-400

Tailwind Green 400

#4ADE80·Green family·Shade 400

Color Values

HEX
#4ADE80
RGB
rgb(74, 222, 128)
HSL
hsl(142, 69%, 58%)
OKLCH
oklch(0.800 0.182 152)
CMYK
cmyk(67%, 0%, 42%, 13%)
CSS Variable
var(--color-green-400)
Tailwind Class
bg-green-400

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

1.74:1

Fail

On Black

12.05:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-green-400

Text

text-green-400

Border

border-green-400

Ring

ring-green-400

Outline

outline-green-400

Fill

fill-green-400

Stroke

stroke-green-400

From (gradient)

from-green-400

Via (gradient)

via-green-400

To (gradient)

to-green-400

Placeholder

placeholder-green-400

Caret

caret-green-400

Accent

accent-green-400

Decoration

decoration-green-400

Shadow Color

shadow-green-400

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'green-400': '#4ade80', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #4ADE80;

/* RGB */
background-color: rgb(74, 222, 128);

/* HSL */
background-color: hsl(142, 69%, 58%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.800 0.182 152);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-green-400);

/* Gradient example */
background: linear-gradient(135deg, #f0fdf4 0%, #22c55e 100%);

OKLCH — Modern Color Space

Lightness (L)

0.800

80% perceived brightness

Chroma (C)

0.182

Color intensity / saturation

Hue (H)

152°

Angle on perceptual hue wheel

oklch(0.800 0.182 152)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Mid-tone accent

Shade 400 of the Green palette

Recommended Uses

  • Icon fills on white
  • Secondary buttons (large text)
  • Chart & data visualization bars
  • Decorative UI elements

Avoid

Body text on white — often fails WCAG AA for normal text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #4ADE80

Frequently Asked Questions

What is the hex code for Tailwind Green 400?
Tailwind Green 400 has the hex code #4ADE80. Its RGB value is rgb(74, 222, 128) and its HSL value is hsl(142, 69%, 58%).
What Tailwind utility classes use Green 400?
Use bg-green-400 for backgrounds, text-green-400 for text color, border-green-400 for borders, and ring-green-400 for focus rings. In Tailwind v4 the CSS variable var(--color-green-400) is available natively.
Is Tailwind Green 400 WCAG accessible?
Tailwind Green 400 achieves a 1.74:1 contrast ratio on white (Fail) and 12.05:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Green 400?
Tailwind Green 400 in OKLCH is oklch(0.800 0.182 152) — lightness 0.800, chroma 0.182, hue 152°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Green 400 used for?
At shade 400, Tailwind Green 400 is best described as "Mid-tone accent". Recommended uses: Icon fills on white, Secondary buttons (large text), Chart & data visualization bars.