HSL(122, 100%, 21%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(122,100%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(122, 100%, 21%) color: hsl(122, 100%, 21%)
HEX #006B04 color: #006B04
RGB rgb(0, 107, 4) color: rgb(0, 107, 4)
CMYK cmyk(100%, 0%, 96%, 58%)
HSV hsv(122, 100%, 42%)
HWB hwb(122 0% 58%) color: hwb(122 0% 58%)
OKLCH oklch(0.4575 0.1541 142.8) color: oklch(0.4575 0.1541 142.8)
Lab lab(38.77 -45.29 42.84) color: lab(38.77 -45.29 42.84)
LCH lch(38.77 62.34 136.59) color: lch(38.77 62.34 136.59)

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

#2E2F1D — rgb(46, 47, 29)

Deuteranopia (Green-blind)

#282023 — rgb(40, 32, 35)

Tritanopia (Blue-blind)

#053135 — rgb(5, 49, 53)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(122, 100%, 21%);

text

color: hsl(122, 100%, 21%);

border

border: 2px solid hsl(122, 100%, 21%);

gradient light

background: linear-gradient(to right, hsl(122, 100%, 41%), hsl(122, 100%, 21%));

gradient dark

background: linear-gradient(to right, hsl(122, 100%, 21%), hsl(122, 100%, 1%))

hex

background-color: #006B04;

tailwind

bg-[hsl(122,100%,21%)]

box shadow

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

css variable

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

HEX: #006B04 | RGB: rgb(0, 107, 4) | CMYK: 100%, 0%, 96%, 58% | HSV: 122°, 100%, 42%. Copy any format from the conversion table above.

What colors go well with #006B04?

The complementary color is HSL(302, 100%, 21%). For a triadic harmony, use hues 122°, 242°, and 2°. For analogous combinations, try hues 92° and 152°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(122, 100%, 21%) in CSS?

As HSL: color: hsl(122, 100%, 21%); — As HEX: color: #006B04; — As RGB: color: rgb(0, 107, 4); — Tailwind CSS: bg-[hsl(122,100%,21%)] — CSS variable: --color-primary: hsl(122, 100%, 21%);