HSL(122, 68%, 42%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(122,68%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(122, 68%, 42%) color: hsl(122, 68%, 42%)
HEX #22B427 color: #22B427
RGB rgb(34, 180, 39) color: rgb(34, 180, 39)
CMYK cmyk(81%, 0%, 78%, 29%)
HSV hsv(122, 81%, 71%)
HWB hwb(122 13% 29%) color: hwb(122 13% 29%)
OKLCH oklch(0.6716 0.2114 143.08) color: oklch(0.6716 0.2114 143.08)
Lab lab(64.26 -62.35 56.77) color: lab(64.26 -62.35 56.77)
LCH lch(64.26 84.32 137.68) color: lch(64.26 84.32 137.68)

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 2.75:1
vs Black 7.63:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#616349 — rgb(97, 99, 73)

Deuteranopia (Green-blind)

#594E51 — rgb(89, 78, 81)

Tritanopia (Blue-blind)

#29646A — rgb(41, 100, 106)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(122, 68%, 42%);

text

color: hsl(122, 68%, 42%);

border

border: 2px solid hsl(122, 68%, 42%);

gradient light

background: linear-gradient(to right, hsl(122, 68%, 62%), hsl(122, 68%, 42%));

gradient dark

background: linear-gradient(to right, hsl(122, 68%, 42%), hsl(122, 68%, 22%))

hex

background-color: #22B427;

tailwind

bg-[hsl(122,68%,42%)]

box shadow

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

css variable

--color-primary: hsl(122, 68%, 42%);

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, 68%, 42%)?

HEX: #22B427 | RGB: rgb(34, 180, 39) | CMYK: 81%, 0%, 78%, 29% | HSV: 122°, 81%, 71%. Copy any format from the conversion table above.

What colors go well with #22B427?

The complementary color is HSL(302, 68%, 42%). 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, 68%, 42%) in CSS?

As HSL: color: hsl(122, 68%, 42%); — As HEX: color: #22B427; — As RGB: color: rgb(34, 180, 39); — Tailwind CSS: bg-[hsl(122,68%,42%)] — CSS variable: --color-primary: hsl(122, 68%, 42%);