HSL(122, 75%, 40%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(122,75%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(122, 75%, 40%) color: hsl(122, 75%, 40%)
HEX #1AB31F color: #1AB31F
RGB rgb(26, 179, 31) color: rgb(26, 179, 31)
CMYK cmyk(85%, 0%, 83%, 30%)
HSV hsv(122, 85%, 70%)
HWB hwb(122 11% 30%) color: hwb(122 11% 30%)
OKLCH oklch(0.6673 0.2155 142.93) color: oklch(0.6673 0.2155 142.93)
Lab lab(63.8 -63.41 58.65) color: lab(63.8 -63.41 58.65)
LCH lch(63.8 86.38 137.23) color: lch(63.8 86.38 137.23)

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

#5C5E43 — rgb(92, 94, 67)

Deuteranopia (Green-blind)

#53484B — rgb(83, 72, 75)

Tritanopia (Blue-blind)

#225F65 — rgb(34, 95, 101)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(122, 75%, 40%);

text

color: hsl(122, 75%, 40%);

border

border: 2px solid hsl(122, 75%, 40%);

gradient light

background: linear-gradient(to right, hsl(122, 75%, 60%), hsl(122, 75%, 40%));

gradient dark

background: linear-gradient(to right, hsl(122, 75%, 40%), hsl(122, 75%, 20%))

hex

background-color: #1AB31F;

tailwind

bg-[hsl(122,75%,40%)]

box shadow

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

css variable

--color-primary: hsl(122, 75%, 40%);

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, 75%, 40%)?

HEX: #1AB31F | RGB: rgb(26, 179, 31) | CMYK: 85%, 0%, 83%, 30% | HSV: 122°, 85%, 70%. Copy any format from the conversion table above.

What colors go well with #1AB31F?

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

As HSL: color: hsl(122, 75%, 40%); — As HEX: color: #1AB31F; — As RGB: color: rgb(26, 179, 31); — Tailwind CSS: bg-[hsl(122,75%,40%)] — CSS variable: --color-primary: hsl(122, 75%, 40%);