HSL(96, 67%, 21%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(96,67%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(96, 67%, 21%) color: hsl(96, 67%, 21%)
HEX #2E5912 color: #2E5912
RGB rgb(46, 89, 18) color: rgb(46, 89, 18)
CMYK cmyk(48%, 0%, 80%, 65%)
HSV hsv(96, 80%, 35%)
HWB hwb(96 7% 65%) color: hwb(96 7% 65%)
OKLCH oklch(0.4172 0.1103 135.89) color: oklch(0.4172 0.1103 135.89)
Lab lab(33.5 -28.43 34.22) color: lab(33.5 -28.43 34.22)
LCH lch(33.5 44.49 129.72) color: lch(33.5 44.49 129.72)

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 8.22:1
vs Black 2.55: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)

#414123 — rgb(65, 65, 35)

Deuteranopia (Green-blind)

#3E3B27 — rgb(62, 59, 39)

Tritanopia (Blue-blind)

#303134 — rgb(48, 49, 52)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(96, 67%, 21%);

text

color: hsl(96, 67%, 21%);

border

border: 2px solid hsl(96, 67%, 21%);

gradient light

background: linear-gradient(to right, hsl(96, 67%, 41%), hsl(96, 67%, 21%));

gradient dark

background: linear-gradient(to right, hsl(96, 67%, 21%), hsl(96, 67%, 1%))

hex

background-color: #2E5912;

tailwind

bg-[hsl(96,67%,21%)]

box shadow

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

css variable

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

HEX: #2E5912 | RGB: rgb(46, 89, 18) | CMYK: 48%, 0%, 80%, 65% | HSV: 96°, 80%, 35%. Copy any format from the conversion table above.

What colors go well with #2E5912?

The complementary color is HSL(276, 67%, 21%). For a triadic harmony, use hues 96°, 216°, and 336°. For analogous combinations, try hues 66° and 126°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(96, 67%, 21%) in CSS?

As HSL: color: hsl(96, 67%, 21%); — As HEX: color: #2E5912; — As RGB: color: rgb(46, 89, 18); — Tailwind CSS: bg-[hsl(96,67%,21%)] — CSS variable: --color-primary: hsl(96, 67%, 21%);