HSL(147, 42%, 31%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(147,42%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(147, 42%, 31%) color: hsl(147, 42%, 31%)
HEX #2E704C color: #2E704C
RGB rgb(46, 112, 76) color: rgb(46, 112, 76)
CMYK cmyk(59%, 0%, 32%, 56%)
HSV hsv(147, 59%, 44%)
HWB hwb(147 18% 56%) color: hwb(147 18% 56%)
OKLCH oklch(0.492 0.0893 156.85) color: oklch(0.492 0.0893 156.85)
Lab lab(42.29 -30.11 13.86) color: lab(42.29 -30.11 13.86)
LCH lch(42.29 33.15 155.28) color: lch(42.29 33.15 155.28)

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.94:1
vs Black 3.54: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)

#4B4B55 — rgb(75, 75, 85)

Deuteranopia (Green-blind)

#474257 — rgb(71, 66, 87)

Tritanopia (Blue-blind)

#315C5D — rgb(49, 92, 93)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(147, 42%, 31%);

text

color: hsl(147, 42%, 31%);

border

border: 2px solid hsl(147, 42%, 31%);

gradient light

background: linear-gradient(to right, hsl(147, 42%, 51%), hsl(147, 42%, 31%));

gradient dark

background: linear-gradient(to right, hsl(147, 42%, 31%), hsl(147, 42%, 11%))

hex

background-color: #2E704C;

tailwind

bg-[hsl(147,42%,31%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(147, 42%, 31%, 0.4);

css variable

--color-primary: hsl(147, 42%, 31%);

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(147, 42%, 31%)?

HEX: #2E704C | RGB: rgb(46, 112, 76) | CMYK: 59%, 0%, 32%, 56% | HSV: 147°, 59%, 44%. Copy any format from the conversion table above.

What colors go well with #2E704C?

The complementary color is HSL(327, 42%, 31%). For a triadic harmony, use hues 147°, 267°, and 27°. For analogous combinations, try hues 117° and 177°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(147, 42%, 31%) in CSS?

As HSL: color: hsl(147, 42%, 31%); — As HEX: color: #2E704C; — As RGB: color: rgb(46, 112, 76); — Tailwind CSS: bg-[hsl(147,42%,31%)] — CSS variable: --color-primary: hsl(147, 42%, 31%);