HSL(112, 52%, 21%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(112,52%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(112, 52%, 21%) color: hsl(112, 52%, 21%)
HEX #21511A color: #21511A
RGB rgb(33, 81, 26) color: rgb(33, 81, 26)
CMYK cmyk(59%, 0%, 68%, 68%)
HSV hsv(112, 68%, 32%)
HWB hwb(112 10% 68%) color: hwb(112 10% 68%)
OKLCH oklch(0.388 0.0998 141.21) color: oklch(0.388 0.0998 141.21)
Lab lab(30.11 -28.46 26.81) color: lab(30.11 -28.46 26.81)
LCH lch(30.11 39.1 136.71) color: lch(30.11 39.1 136.71)

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.31:1
vs Black 2.26: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)

#363627 — rgb(54, 54, 39)

Deuteranopia (Green-blind)

#332F2B — rgb(51, 47, 43)

Tritanopia (Blue-blind)

#233234 — rgb(35, 50, 52)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(112, 52%, 21%);

text

color: hsl(112, 52%, 21%);

border

border: 2px solid hsl(112, 52%, 21%);

gradient light

background: linear-gradient(to right, hsl(112, 52%, 41%), hsl(112, 52%, 21%));

gradient dark

background: linear-gradient(to right, hsl(112, 52%, 21%), hsl(112, 52%, 1%))

hex

background-color: #21511A;

tailwind

bg-[hsl(112,52%,21%)]

box shadow

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

css variable

--color-primary: hsl(112, 52%, 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(112, 52%, 21%)?

HEX: #21511A | RGB: rgb(33, 81, 26) | CMYK: 59%, 0%, 68%, 68% | HSV: 112°, 68%, 32%. Copy any format from the conversion table above.

What colors go well with #21511A?

The complementary color is HSL(292, 52%, 21%). For a triadic harmony, use hues 112°, 232°, and 352°. For analogous combinations, try hues 82° and 142°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(112, 52%, 21%) in CSS?

As HSL: color: hsl(112, 52%, 21%); — As HEX: color: #21511A; — As RGB: color: rgb(33, 81, 26); — Tailwind CSS: bg-[hsl(112,52%,21%)] — CSS variable: --color-primary: hsl(112, 52%, 21%);