HSL(126, 71%, 29%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(126,71%,29%)]

Color Conversions

Format Value CSS Usage
HSL hsl(126, 71%, 29%) color: hsl(126, 71%, 29%)
HEX #157E20 color: #157E20
RGB rgb(21, 126, 32) color: rgb(21, 126, 32)
CMYK cmyk(83%, 0%, 75%, 51%)
HSV hsv(126, 83%, 49%)
HWB hwb(126 8% 51%) color: hwb(126 8% 51%)
OKLCH oklch(0.518 0.1583 143.98) color: oklch(0.518 0.1583 143.98)
Lab lab(45.89 -47.35 40.92) color: lab(45.89 -47.35 40.92)
LCH lch(45.89 62.58 139.17) color: lch(45.89 62.58 139.17)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 5.2:1
vs Black 4.04:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#424337 — rgb(66, 67, 55)

Deuteranopia (Green-blind)

#3C353C — rgb(60, 53, 60)

Tritanopia (Blue-blind)

#1A494D — rgb(26, 73, 77)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(126, 71%, 29%);

text

color: hsl(126, 71%, 29%);

border

border: 2px solid hsl(126, 71%, 29%);

gradient light

background: linear-gradient(to right, hsl(126, 71%, 49%), hsl(126, 71%, 29%));

gradient dark

background: linear-gradient(to right, hsl(126, 71%, 29%), hsl(126, 71%, 9%))

hex

background-color: #157E20;

tailwind

bg-[hsl(126,71%,29%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(126, 71%, 29%, 0.4);

css variable

--color-primary: hsl(126, 71%, 29%);

Related Colors

Use Cases for Green

Success states Eco/nature brands Finance apps Health apps Confirm buttons

Frequently Asked Questions

What are all the color codes for HSL(126, 71%, 29%)?

HEX: #157E20 | RGB: rgb(21, 126, 32) | CMYK: 83%, 0%, 75%, 51% | HSV: 126°, 83%, 49%. Copy any format from the conversion table above.

What colors go well with #157E20?

The complementary color is HSL(306, 71%, 29%). For a triadic harmony, use hues 126°, 246°, and 6°. For analogous combinations, try hues 96° and 156°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(126, 71%, 29%) in CSS?

As HSL: color: hsl(126, 71%, 29%); — As HEX: color: #157E20; — As RGB: color: rgb(21, 126, 32); — Tailwind CSS: bg-[hsl(126,71%,29%)] — CSS variable: --color-primary: hsl(126, 71%, 29%);