HSL(87, 42%, 31%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

3500K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(87, 42%, 31%) color: hsl(87, 42%, 31%)
HEX #52702E color: #52702E
RGB rgb(82, 112, 46) color: rgb(82, 112, 46)
CMYK cmyk(27%, 0%, 59%, 56%)
HSV hsv(87, 59%, 44%)
HWB hwb(87 18% 56%) color: hwb(87 18% 56%)
OKLCH oklch(0.5062 0.0999 129.75) color: oklch(0.5062 0.0999 129.75)
Lab lab(43.62 -22.8 32.69) color: lab(43.62 -22.8 32.69)
LCH lch(43.62 39.86 124.89) color: lch(43.62 39.86 124.89)

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.65:1
vs Black 3.72: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)

#5F5F3E — rgb(95, 95, 62)

Deuteranopia (Green-blind)

#5D5B42 — rgb(93, 91, 66)

Tritanopia (Blue-blind)

#544B4D — rgb(84, 75, 77)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #52702E;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(87, 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(87, 42%, 31%)?

HEX: #52702E | RGB: rgb(82, 112, 46) | CMYK: 27%, 0%, 59%, 56% | HSV: 87°, 59%, 44%. Copy any format from the conversion table above.

What colors go well with #52702E?

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

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

As HSL: color: hsl(87, 42%, 31%); — As HEX: color: #52702E; — As RGB: color: rgb(82, 112, 46); — Tailwind CSS: bg-[hsl(87,42%,31%)] — CSS variable: --color-primary: hsl(87, 42%, 31%);