HSL(87, 45%, 34%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

3500K

CSS Class

bg-[hsl(87,45%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(87, 45%, 34%) color: hsl(87, 45%, 34%)
HEX #5B7E30 color: #5B7E30
RGB rgb(91, 126, 48) color: rgb(91, 126, 48)
CMYK cmyk(28%, 0%, 62%, 51%)
HSV hsv(87, 62%, 49%)
HWB hwb(87 19% 51%) color: hwb(87 19% 51%)
OKLCH oklch(0.549 0.1139 129.81) color: oklch(0.549 0.1139 129.81)
Lab lab(48.71 -25.95 37.65) color: lab(48.71 -25.95 37.65)
LCH lch(48.71 45.73 124.58) color: lch(48.71 45.73 124.58)

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 4.7:1
vs Black 4.47: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)

#6A6A43 — rgb(106, 106, 67)

Deuteranopia (Green-blind)

#686647 — rgb(104, 102, 71)

Tritanopia (Blue-blind)

#5D5255 — rgb(93, 82, 85)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(87, 45%, 34%);

text

color: hsl(87, 45%, 34%);

border

border: 2px solid hsl(87, 45%, 34%);

gradient light

background: linear-gradient(to right, hsl(87, 45%, 54%), hsl(87, 45%, 34%));

gradient dark

background: linear-gradient(to right, hsl(87, 45%, 34%), hsl(87, 45%, 14%))

hex

background-color: #5B7E30;

tailwind

bg-[hsl(87,45%,34%)]

box shadow

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

css variable

--color-primary: hsl(87, 45%, 34%);

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, 45%, 34%)?

HEX: #5B7E30 | RGB: rgb(91, 126, 48) | CMYK: 28%, 0%, 62%, 51% | HSV: 87°, 62%, 49%. Copy any format from the conversion table above.

What colors go well with #5B7E30?

The complementary color is HSL(267, 45%, 34%). 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, 45%, 34%) in CSS?

As HSL: color: hsl(87, 45%, 34%); — As HEX: color: #5B7E30; — As RGB: color: rgb(91, 126, 48); — Tailwind CSS: bg-[hsl(87,45%,34%)] — CSS variable: --color-primary: hsl(87, 45%, 34%);