HSL(126, 50%, 18%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(126, 50%, 18%) color: hsl(126, 50%, 18%)
HEX #17451C color: #17451C
RGB rgb(23, 69, 28) color: rgb(23, 69, 28)
CMYK cmyk(67%, 0%, 59%, 73%)
HSV hsv(127, 67%, 27%)
HWB hwb(127 9% 73%) color: hwb(127 9% 73%)
OKLCH oklch(0.3476 0.0847 145.42) color: oklch(0.3476 0.0847 145.42)
Lab lab(25.33 -25.74 20.03) color: lab(25.33 -25.74 20.03)
LCH lch(25.33 32.62 142.11) color: lch(25.33 32.62 142.11)

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 11.03:1
vs Black 1.9:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#2B2B26 — rgb(43, 43, 38)

Deuteranopia (Green-blind)

#282528 — rgb(40, 37, 40)

Tritanopia (Blue-blind)

#192E2F — rgb(25, 46, 47)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

background: linear-gradient(to right, hsl(126, 50%, 38%), hsl(126, 50%, 18%));

gradient dark

background: linear-gradient(to right, hsl(126, 50%, 18%), hsl(126, 50%, 0%))

hex

background-color: #17451C;

tailwind

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

box shadow

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

css variable

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

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

HEX: #17451C | RGB: rgb(23, 69, 28) | CMYK: 67%, 0%, 59%, 73% | HSV: 127°, 67%, 27%. Copy any format from the conversion table above.

What colors go well with #17451C?

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

As HSL: color: hsl(126, 50%, 18%); — As HEX: color: #17451C; — As RGB: color: rgb(23, 69, 28); — Tailwind CSS: bg-[hsl(126,50%,18%)] — CSS variable: --color-primary: hsl(126, 50%, 18%);