HSL(97, 92%, 22%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(97,92%,22%)]

Color Conversions

Format Value CSS Usage
HSL hsl(97, 92%, 22%) color: hsl(97, 92%, 22%)
HEX #2C6C04 color: #2C6C04
RGB rgb(44, 108, 4) color: rgb(44, 108, 4)
CMYK cmyk(59%, 0%, 96%, 58%)
HSV hsv(97, 96%, 42%)
HWB hwb(97 2% 58%) color: hwb(97 2% 58%)
OKLCH oklch(0.4706 0.1422 137.66) color: oklch(0.4706 0.1422 137.66)
Lab lab(40.03 -37.85 44.26) color: lab(40.03 -37.85 44.26)
LCH lch(40.03 58.24 130.54) color: lch(40.03 58.24 130.54)

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

#48481D — rgb(72, 72, 29)

Deuteranopia (Green-blind)

#443F23 — rgb(68, 63, 35)

Tritanopia (Blue-blind)

#2F3135 — rgb(47, 49, 53)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(97, 92%, 22%);

text

color: hsl(97, 92%, 22%);

border

border: 2px solid hsl(97, 92%, 22%);

gradient light

background: linear-gradient(to right, hsl(97, 92%, 42%), hsl(97, 92%, 22%));

gradient dark

background: linear-gradient(to right, hsl(97, 92%, 22%), hsl(97, 92%, 2%))

hex

background-color: #2C6C04;

tailwind

bg-[hsl(97,92%,22%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(97, 92%, 22%, 0.4);

css variable

--color-primary: hsl(97, 92%, 22%);

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(97, 92%, 22%)?

HEX: #2C6C04 | RGB: rgb(44, 108, 4) | CMYK: 59%, 0%, 96%, 58% | HSV: 97°, 96%, 42%. Copy any format from the conversion table above.

What colors go well with #2C6C04?

The complementary color is HSL(277, 92%, 22%). For a triadic harmony, use hues 97°, 217°, and 337°. For analogous combinations, try hues 67° and 127°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(97, 92%, 22%) in CSS?

As HSL: color: hsl(97, 92%, 22%); — As HEX: color: #2C6C04; — As RGB: color: rgb(44, 108, 4); — Tailwind CSS: bg-[hsl(97,92%,22%)] — CSS variable: --color-primary: hsl(97, 92%, 22%);