HSL(87, 40%, 21%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

3500K

CSS Class

bg-[hsl(87,40%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(87, 40%, 21%) color: hsl(87, 40%, 21%)
HEX #384B20 color: #384B20
RGB rgb(56, 75, 32) color: rgb(56, 75, 32)
CMYK cmyk(25%, 0%, 57%, 71%)
HSV hsv(87, 57%, 29%)
HWB hwb(87 12% 71%) color: hwb(87 12% 71%)
OKLCH oklch(0.3855 0.0703 128.97) color: oklch(0.3855 0.0703 128.97)
Lab lab(29.35 -15.86 23.01) color: lab(29.35 -15.86 23.01)
LCH lch(29.35 27.95 124.58) color: lch(29.35 27.95 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 9.57:1
vs Black 2.2:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#40402A — rgb(64, 64, 42)

Deuteranopia (Green-blind)

#3F3E2D — rgb(63, 62, 45)

Tritanopia (Blue-blind)

#393334 — rgb(57, 51, 52)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(87, 40%, 21%);

text

color: hsl(87, 40%, 21%);

border

border: 2px solid hsl(87, 40%, 21%);

gradient light

background: linear-gradient(to right, hsl(87, 40%, 41%), hsl(87, 40%, 21%));

gradient dark

background: linear-gradient(to right, hsl(87, 40%, 21%), hsl(87, 40%, 1%))

hex

background-color: #384B20;

tailwind

bg-[hsl(87,40%,21%)]

box shadow

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

css variable

--color-primary: hsl(87, 40%, 21%);

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, 40%, 21%)?

HEX: #384B20 | RGB: rgb(56, 75, 32) | CMYK: 25%, 0%, 57%, 71% | HSV: 87°, 57%, 29%. Copy any format from the conversion table above.

What colors go well with #384B20?

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

As HSL: color: hsl(87, 40%, 21%); — As HEX: color: #384B20; — As RGB: color: rgb(56, 75, 32); — Tailwind CSS: bg-[hsl(87,40%,21%)] — CSS variable: --color-primary: hsl(87, 40%, 21%);