Skip to main content

bg-emerald-400

Tailwind Emerald 400

#34D399·Emerald family·Shade 400

Color Values

HEX
#34D399
RGB
rgb(52, 211, 153)
HSL
hsl(158, 64%, 52%)
OKLCH
oklch(0.773 0.153 163)
CMYK
cmyk(75%, 0%, 27%, 17%)
CSS Variable
var(--color-emerald-400)
Tailwind Class
bg-emerald-400

Accessibility Score

60/100

Good

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

On White

1.92:1

Fail

On Black

10.92:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-emerald-400

Text

text-emerald-400

Border

border-emerald-400

Ring

ring-emerald-400

Outline

outline-emerald-400

Fill

fill-emerald-400

Stroke

stroke-emerald-400

From (gradient)

from-emerald-400

Via (gradient)

via-emerald-400

To (gradient)

to-emerald-400

Placeholder

placeholder-emerald-400

Caret

caret-emerald-400

Accent

accent-emerald-400

Decoration

decoration-emerald-400

Shadow Color

shadow-emerald-400

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'emerald-400': '#34d399', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #34D399;

/* RGB */
background-color: rgb(52, 211, 153);

/* HSL */
background-color: hsl(158, 64%, 52%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.773 0.153 163);

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

/* Gradient example */
background: linear-gradient(135deg, #ecfdf5 0%, #10b981 100%);

OKLCH — Modern Color Space

Lightness (L)

0.773

77% perceived brightness

Chroma (C)

0.153

Color intensity / saturation

Hue (H)

163°

Angle on perceptual hue wheel

oklch(0.773 0.153 163)

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 Emerald 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 — #34D399

Frequently Asked Questions

What is the hex code for Tailwind Emerald 400?
Tailwind Emerald 400 has the hex code #34D399. Its RGB value is rgb(52, 211, 153) and its HSL value is hsl(158, 64%, 52%).
What Tailwind utility classes use Emerald 400?
Use bg-emerald-400 for backgrounds, text-emerald-400 for text color, border-emerald-400 for borders, and ring-emerald-400 for focus rings. In Tailwind v4 the CSS variable var(--color-emerald-400) is available natively.
Is Tailwind Emerald 400 WCAG accessible?
Tailwind Emerald 400 achieves a 1.92:1 contrast ratio on white (Fail) and 10.92:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Emerald 400?
Tailwind Emerald 400 in OKLCH is oklch(0.773 0.153 163) — lightness 0.773, chroma 0.153, hue 163°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Emerald 400 used for?
At shade 400, Tailwind Emerald 400 is best described as "Mid-tone accent". Recommended uses: Icon fills on white, Secondary buttons (large text), Chart & data visualization bars.