HSL(129, 40%, 18%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(129,40%,18%)]

Color Conversions

Format Value CSS Usage
HSL hsl(129, 40%, 18%) color: hsl(129, 40%, 18%)
HEX #1C4021 color: #1C4021
RGB rgb(28, 64, 33) color: rgb(28, 64, 33)
CMYK cmyk(56%, 0%, 48%, 75%)
HSV hsv(128, 56%, 25%)
HWB hwb(128 11% 75%) color: hwb(128 11% 75%)
OKLCH oklch(0.3355 0.0679 146.83) color: oklch(0.3355 0.0679 146.83)
Lab lab(23.75 -20.93 15.08) color: lab(23.75 -20.93 15.08)
LCH lch(23.75 25.8 144.23) color: lch(23.75 25.8 144.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 11.64:1
vs Black 1.8: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)

#2C2C29 — rgb(44, 44, 41)

Deuteranopia (Green-blind)

#2A272A — rgb(42, 39, 42)

Tritanopia (Blue-blind)

#1E2E30 — rgb(30, 46, 48)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(129, 40%, 18%);

text

color: hsl(129, 40%, 18%);

border

border: 2px solid hsl(129, 40%, 18%);

gradient light

background: linear-gradient(to right, hsl(129, 40%, 38%), hsl(129, 40%, 18%));

gradient dark

background: linear-gradient(to right, hsl(129, 40%, 18%), hsl(129, 40%, 0%))

hex

background-color: #1C4021;

tailwind

bg-[hsl(129,40%,18%)]

box shadow

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

css variable

--color-primary: hsl(129, 40%, 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(129, 40%, 18%)?

HEX: #1C4021 | RGB: rgb(28, 64, 33) | CMYK: 56%, 0%, 48%, 75% | HSV: 128°, 56%, 25%. Copy any format from the conversion table above.

What colors go well with #1C4021?

The complementary color is HSL(309, 40%, 18%). For a triadic harmony, use hues 129°, 249°, and 9°. For analogous combinations, try hues 99° and 159°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(129, 40%, 18%) in CSS?

As HSL: color: hsl(129, 40%, 18%); — As HEX: color: #1C4021; — As RGB: color: rgb(28, 64, 33); — Tailwind CSS: bg-[hsl(129,40%,18%)] — CSS variable: --color-primary: hsl(129, 40%, 18%);