HSL(126, 30%, 45%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(126,30%,45%)]

Color Conversions

Format Value CSS Usage
HSL hsl(126, 30%, 45%) color: hsl(126, 30%, 45%)
HEX #509557 color: #509557
RGB rgb(80, 149, 87) color: rgb(80, 149, 87)
CMYK cmyk(46%, 0%, 42%, 42%)
HSV hsv(126, 46%, 58%)
HWB hwb(126 31% 42%) color: hwb(126 31% 42%)
OKLCH oklch(0.6082 0.116 146.17) color: oklch(0.6082 0.116 146.17)
Lab lab(55.97 -35.46 26.13) color: lab(55.97 -35.46 26.13)
LCH lch(55.97 44.05 143.61) color: lch(55.97 44.05 143.61)

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 3.63:1
vs Black 5.78: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)

#6E6E66 — rgb(110, 110, 102)

Deuteranopia (Green-blind)

#6A656A — rgb(106, 101, 106)

Tritanopia (Blue-blind)

#537274 — rgb(83, 114, 116)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(126, 30%, 45%);

text

color: hsl(126, 30%, 45%);

border

border: 2px solid hsl(126, 30%, 45%);

gradient light

background: linear-gradient(to right, hsl(126, 30%, 65%), hsl(126, 30%, 45%));

gradient dark

background: linear-gradient(to right, hsl(126, 30%, 45%), hsl(126, 30%, 25%))

hex

background-color: #509557;

tailwind

bg-[hsl(126,30%,45%)]

box shadow

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

css variable

--color-primary: hsl(126, 30%, 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(126, 30%, 45%)?

HEX: #509557 | RGB: rgb(80, 149, 87) | CMYK: 46%, 0%, 42%, 42% | HSV: 126°, 46%, 58%. Copy any format from the conversion table above.

What colors go well with #509557?

The complementary color is HSL(306, 30%, 45%). For a triadic harmony, use hues 126°, 246°, and 6°. For analogous combinations, try hues 96° and 156°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(126, 30%, 45%) in CSS?

As HSL: color: hsl(126, 30%, 45%); — As HEX: color: #509557; — As RGB: color: rgb(80, 149, 87); — Tailwind CSS: bg-[hsl(126,30%,45%)] — CSS variable: --color-primary: hsl(126, 30%, 45%);