HSL(126, 20%, 50%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(126,20%,50%)]

Color Conversions

Format Value CSS Usage
HSL hsl(126, 20%, 50%) color: hsl(126, 20%, 50%)
HEX #66996B color: #66996B
RGB rgb(102, 153, 107) color: rgb(102, 153, 107)
CMYK cmyk(33%, 0%, 30%, 40%)
HSV hsv(126, 33%, 60%)
HWB hwb(126 40% 40%) color: hwb(126 40% 40%)
OKLCH oklch(0.6342 0.0875 146.85) color: oklch(0.6342 0.0875 146.85)
Lab lab(58.67 -26.82 18.92) color: lab(58.67 -26.82 18.92)
LCH lch(58.67 32.82 144.8) color: lch(58.67 32.82 144.8)

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.32:1
vs Black 6.33: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)

#7C7D76 — rgb(124, 125, 118)

Deuteranopia (Green-blind)

#797579 — rgb(121, 117, 121)

Tritanopia (Blue-blind)

#697F81 — rgb(105, 127, 129)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(126, 20%, 50%);

text

color: hsl(126, 20%, 50%);

border

border: 2px solid hsl(126, 20%, 50%);

gradient light

background: linear-gradient(to right, hsl(126, 20%, 70%), hsl(126, 20%, 50%));

gradient dark

background: linear-gradient(to right, hsl(126, 20%, 50%), hsl(126, 20%, 30%))

hex

background-color: #66996B;

tailwind

bg-[hsl(126,20%,50%)]

box shadow

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

css variable

--color-primary: hsl(126, 20%, 50%);

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

HEX: #66996B | RGB: rgb(102, 153, 107) | CMYK: 33%, 0%, 30%, 40% | HSV: 126°, 33%, 60%. Copy any format from the conversion table above.

What colors go well with #66996B?

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

As HSL: color: hsl(126, 20%, 50%); — As HEX: color: #66996B; — As RGB: color: rgb(102, 153, 107); — Tailwind CSS: bg-[hsl(126,20%,50%)] — CSS variable: --color-primary: hsl(126, 20%, 50%);