Skip to main content

bg-green-500

Tailwind Green 500

#22C55E·Green family·Shade 500

Color Values

HEX
#22C55E
RGB
rgb(34, 197, 94)
HSL
hsl(142, 71%, 45%)
OKLCH
oklch(0.723 0.192 150)
CMYK
cmyk(83%, 0%, 52%, 23%)
CSS Variable
var(--color-green-500)
Tailwind Class
bg-green-500

Accessibility Score

60/100

Good

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

On White

2.28:1

Fail

On Black

9.22:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-green-500

Text

text-green-500

Border

border-green-500

Ring

ring-green-500

Outline

outline-green-500

Fill

fill-green-500

Stroke

stroke-green-500

From (gradient)

from-green-500

Via (gradient)

via-green-500

To (gradient)

to-green-500

Placeholder

placeholder-green-500

Caret

caret-green-500

Accent

accent-green-500

Decoration

decoration-green-500

Shadow Color

shadow-green-500

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'green-500': '#22c55e', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #22C55E;

/* RGB */
background-color: rgb(34, 197, 94);

/* HSL */
background-color: hsl(142, 71%, 45%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.723 0.192 150);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.723

72% perceived brightness

Chroma (C)

0.192

Color intensity / saturation

Hue (H)

150°

Angle on perceptual hue wheel

oklch(0.723 0.192 150)

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

Primary brand color

Shade 500 of the Green palette

Recommended Uses

  • CTA buttons
  • Active navigation links
  • Primary brand accents
  • Interactive element fills
  • Highlighted badges

Avoid

Text on dark/black backgrounds — check contrast before use.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #22C55E

Frequently Asked Questions

What is the hex code for Tailwind Green 500?
Tailwind Green 500 has the hex code #22C55E. Its RGB value is rgb(34, 197, 94) and its HSL value is hsl(142, 71%, 45%).
What Tailwind utility classes use Green 500?
Use bg-green-500 for backgrounds, text-green-500 for text color, border-green-500 for borders, and ring-green-500 for focus rings. In Tailwind v4 the CSS variable var(--color-green-500) is available natively.
Is Tailwind Green 500 WCAG accessible?
Tailwind Green 500 achieves a 2.28:1 contrast ratio on white (Fail) and 9.22:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Green 500?
Tailwind Green 500 in OKLCH is oklch(0.723 0.192 150) — lightness 0.723, chroma 0.192, hue 150°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Green 500 used for?
At shade 500, Tailwind Green 500 is best described as "Primary brand color". Recommended uses: CTA buttons, Active navigation links, Primary brand accents.