HSL(122, 20%, 45%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(122,20%,45%)]

Color Conversions

Format Value CSS Usage
HSL hsl(122, 20%, 45%) color: hsl(122, 20%, 45%)
HEX #5C8A5D color: #5C8A5D
RGB rgb(92, 138, 93) color: rgb(92, 138, 93)
CMYK cmyk(33%, 0%, 33%, 46%)
HSV hsv(121, 33%, 54%)
HWB hwb(121 36% 46%) color: hwb(121 36% 46%)
OKLCH oklch(0.5878 0.0843 144.91) color: oklch(0.5878 0.0843 144.91)
Lab lab(53.21 -25.3 19.26) color: lab(53.21 -25.3 19.26)
LCH lch(53.21 31.8 142.72) color: lch(53.21 31.8 142.72)

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 4:1
vs Black 5.25:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#707068 — rgb(112, 112, 104)

Deuteranopia (Green-blind)

#6D6A6B — rgb(109, 106, 107)

Tritanopia (Blue-blind)

#5E7072 — rgb(94, 112, 114)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(122, 20%, 45%);

text

color: hsl(122, 20%, 45%);

border

border: 2px solid hsl(122, 20%, 45%);

gradient light

background: linear-gradient(to right, hsl(122, 20%, 65%), hsl(122, 20%, 45%));

gradient dark

background: linear-gradient(to right, hsl(122, 20%, 45%), hsl(122, 20%, 25%))

hex

background-color: #5C8A5D;

tailwind

bg-[hsl(122,20%,45%)]

box shadow

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

css variable

--color-primary: hsl(122, 20%, 45%);

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, 20%, 45%)?

HEX: #5C8A5D | RGB: rgb(92, 138, 93) | CMYK: 33%, 0%, 33%, 46% | HSV: 121°, 33%, 54%. Copy any format from the conversion table above.

What colors go well with #5C8A5D?

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

As HSL: color: hsl(122, 20%, 45%); — As HEX: color: #5C8A5D; — As RGB: color: rgb(92, 138, 93); — Tailwind CSS: bg-[hsl(122,20%,45%)] — CSS variable: --color-primary: hsl(122, 20%, 45%);