HSL(119, 40%, 18%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(119, 40%, 18%) color: hsl(119, 40%, 18%)
HEX #1C401C color: #1C401C
RGB rgb(28, 64, 28) color: rgb(28, 64, 28)
CMYK cmyk(56%, 0%, 56%, 75%)
HSV hsv(120, 56%, 25%)
HWB hwb(120 11% 75%) color: hwb(120 11% 75%)
OKLCH oklch(0.3345 0.0737 143.71) color: oklch(0.3345 0.0737 143.71)
Lab lab(23.66 -21.83 18.04) color: lab(23.66 -21.83 18.04)
LCH lch(23.66 28.32 140.43) color: lch(23.66 28.32 140.43)

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.67: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)

#2C2C25 — rgb(44, 44, 37)

Deuteranopia (Green-blind)

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

Tritanopia (Blue-blind)

#1E2C2D — rgb(30, 44, 45)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #1C401C;

tailwind

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

box shadow

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

css variable

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

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

What colors go well with #1C401C?

The complementary color is HSL(299, 40%, 18%). For a triadic harmony, use hues 119°, 239°, and 359°. For analogous combinations, try hues 89° and 149°. See the Color Harmony section above for complete palettes with previews.

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

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