Skip to main content

bg-green-700

Tailwind Green 700

#15803D·Green family·Shade 700

Color Values

HEX
#15803D
RGB
rgb(21, 128, 61)
HSL
hsl(142, 72%, 29%)
OKLCH
oklch(0.527 0.137 150)
CMYK
cmyk(84%, 0%, 52%, 50%)
CSS Variable
var(--color-green-700)
Tailwind Class
bg-green-700

Accessibility Score

60/100

Good

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

On White

5.02:1

AA

On Black

4.19:1

AA Large
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-green-700

Text

text-green-700

Border

border-green-700

Ring

ring-green-700

Outline

outline-green-700

Fill

fill-green-700

Stroke

stroke-green-700

From (gradient)

from-green-700

Via (gradient)

via-green-700

To (gradient)

to-green-700

Placeholder

placeholder-green-700

Caret

caret-green-700

Accent

accent-green-700

Decoration

decoration-green-700

Shadow Color

shadow-green-700

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'green-700': '#15803d', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #15803D;

/* RGB */
background-color: rgb(21, 128, 61);

/* HSL */
background-color: hsl(142, 72%, 29%);

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

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

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

OKLCH — Modern Color Space

Lightness (L)

0.527

53% perceived brightness

Chroma (C)

0.137

Color intensity / saturation

Hue (H)

150°

Angle on perceptual hue wheel

oklch(0.527 0.137 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

Dark accent & pressed state

Shade 700 of the Green palette

Recommended Uses

  • Pressed/active button states
  • Text links on white
  • Dark-mode primary buttons
  • Table headers
  • Strong UI accents

Avoid

Text on black — contrast is too low for dark mode text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #15803D

Frequently Asked Questions

What is the hex code for Tailwind Green 700?
Tailwind Green 700 has the hex code #15803D. Its RGB value is rgb(21, 128, 61) and its HSL value is hsl(142, 72%, 29%).
What Tailwind utility classes use Green 700?
Use bg-green-700 for backgrounds, text-green-700 for text color, border-green-700 for borders, and ring-green-700 for focus rings. In Tailwind v4 the CSS variable var(--color-green-700) is available natively.
Is Tailwind Green 700 WCAG accessible?
Tailwind Green 700 achieves a 5.02:1 contrast ratio on white (AA) and 4.19:1 on black (AA Large). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Green 700?
Tailwind Green 700 in OKLCH is oklch(0.527 0.137 150) — lightness 0.527, chroma 0.137, hue 150°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Green 700 used for?
At shade 700, Tailwind Green 700 is best described as "Dark accent & pressed state". Recommended uses: Pressed/active button states, Text links on white, Dark-mode primary buttons.