HSL(130, 78%, 21%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(130,78%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(130, 78%, 21%) color: hsl(130, 78%, 21%)
HEX #0C5F1A color: #0C5F1A
RGB rgb(12, 95, 26) color: rgb(12, 95, 26)
CMYK cmyk(87%, 0%, 73%, 63%)
HSV hsv(130, 87%, 37%)
HWB hwb(130 5% 63%) color: hwb(130 5% 63%)
OKLCH oklch(0.4242 0.1268 144.92) color: oklch(0.4242 0.1268 144.92)
Lab lab(34.67 -38.49 31.66) color: lab(34.67 -38.49 31.66)
LCH lch(34.67 49.84 140.56) color: lch(34.67 49.84 140.56)

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 7.87:1
vs Black 2.67: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)

#30312B — rgb(48, 49, 43)

Deuteranopia (Green-blind)

#2B252F — rgb(43, 37, 47)

Tritanopia (Blue-blind)

#10383B — rgb(16, 56, 59)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(130, 78%, 21%);

text

color: hsl(130, 78%, 21%);

border

border: 2px solid hsl(130, 78%, 21%);

gradient light

background: linear-gradient(to right, hsl(130, 78%, 41%), hsl(130, 78%, 21%));

gradient dark

background: linear-gradient(to right, hsl(130, 78%, 21%), hsl(130, 78%, 1%))

hex

background-color: #0C5F1A;

tailwind

bg-[hsl(130,78%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(130, 78%, 21%, 0.4);

css variable

--color-primary: hsl(130, 78%, 21%);

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(130, 78%, 21%)?

HEX: #0C5F1A | RGB: rgb(12, 95, 26) | CMYK: 87%, 0%, 73%, 63% | HSV: 130°, 87%, 37%. Copy any format from the conversion table above.

What colors go well with #0C5F1A?

The complementary color is HSL(310, 78%, 21%). For a triadic harmony, use hues 130°, 250°, and 10°. For analogous combinations, try hues 100° and 160°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(130, 78%, 21%) in CSS?

As HSL: color: hsl(130, 78%, 21%); — As HEX: color: #0C5F1A; — As RGB: color: rgb(12, 95, 26); — Tailwind CSS: bg-[hsl(130,78%,21%)] — CSS variable: --color-primary: hsl(130, 78%, 21%);