HSL(96, 90%, 21%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(96, 90%, 21%) color: hsl(96, 90%, 21%)
HEX #2C6605 color: #2C6605
RGB rgb(44, 102, 5) color: rgb(44, 102, 5)
CMYK cmyk(57%, 0%, 95%, 60%)
HSV hsv(96, 95%, 40%)
HWB hwb(96 2% 60%) color: hwb(96 2% 60%)
OKLCH oklch(0.4532 0.1346 137.09) color: oklch(0.4532 0.1346 137.09)
Lab lab(37.93 -35.41 42.26) color: lab(37.93 -35.41 42.26)
LCH lch(37.93 55.13 129.96) color: lch(37.93 55.13 129.96)

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 6.98:1
vs Black 3.01: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)

#45461C — rgb(69, 70, 28)

Deuteranopia (Green-blind)

#423D22 — rgb(66, 61, 34)

Tritanopia (Blue-blind)

#2F2F33 — rgb(47, 47, 51)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #2C6605;

tailwind

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

box shadow

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

css variable

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

HEX: #2C6605 | RGB: rgb(44, 102, 5) | CMYK: 57%, 0%, 95%, 60% | HSV: 96°, 95%, 40%. Copy any format from the conversion table above.

What colors go well with #2C6605?

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

As HSL: color: hsl(96, 90%, 21%); — As HEX: color: #2C6605; — As RGB: color: rgb(44, 102, 5); — Tailwind CSS: bg-[hsl(96,90%,21%)] — CSS variable: --color-primary: hsl(96, 90%, 21%);