HSL(91, 90%, 17%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(91,90%,17%)]

Color Conversions

Format Value CSS Usage
HSL hsl(91, 90%, 17%) color: hsl(91, 90%, 17%)
HEX #2A5204 color: #2A5204
RGB rgb(42, 82, 4) color: rgb(42, 82, 4)
CMYK cmyk(49%, 0%, 95%, 68%)
HSV hsv(91, 95%, 32%)
HWB hwb(91 2% 68%) color: hwb(91 2% 68%)
OKLCH oklch(0.3937 0.1108 134.44) color: oklch(0.3937 0.1108 134.44)
Lab lab(30.72 -27.57 36.48) color: lab(30.72 -27.57 36.48)
LCH lch(30.72 45.73 127.08) color: lch(30.72 45.73 127.08)

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

#3B3C17 — rgb(59, 60, 23)

Deuteranopia (Green-blind)

#39361B — rgb(57, 54, 27)

Tritanopia (Blue-blind)

#2C2629 — rgb(44, 38, 41)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(91, 90%, 17%);

text

color: hsl(91, 90%, 17%);

border

border: 2px solid hsl(91, 90%, 17%);

gradient light

background: linear-gradient(to right, hsl(91, 90%, 37%), hsl(91, 90%, 17%));

gradient dark

background: linear-gradient(to right, hsl(91, 90%, 17%), hsl(91, 90%, 0%))

hex

background-color: #2A5204;

tailwind

bg-[hsl(91,90%,17%)]

box shadow

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

css variable

--color-primary: hsl(91, 90%, 17%);

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(91, 90%, 17%)?

HEX: #2A5204 | RGB: rgb(42, 82, 4) | CMYK: 49%, 0%, 95%, 68% | HSV: 91°, 95%, 32%. Copy any format from the conversion table above.

What colors go well with #2A5204?

The complementary color is HSL(271, 90%, 17%). For a triadic harmony, use hues 91°, 211°, and 331°. For analogous combinations, try hues 61° and 121°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(91, 90%, 17%) in CSS?

As HSL: color: hsl(91, 90%, 17%); — As HEX: color: #2A5204; — As RGB: color: rgb(42, 82, 4); — Tailwind CSS: bg-[hsl(91,90%,17%)] — CSS variable: --color-primary: hsl(91, 90%, 17%);