HSL(142, 70%, 40%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(142,70%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(142, 70%, 40%) color: hsl(142, 70%, 40%)
HEX #1FAD53 color: #1FAD53
RGB rgb(31, 173, 83) color: rgb(31, 173, 83)
CMYK cmyk(82%, 0%, 52%, 32%)
HSV hsv(142, 82%, 68%)
HWB hwb(142 12% 32%) color: hwb(142 12% 32%)
OKLCH oklch(0.6567 0.1727 149.73) color: oklch(0.6567 0.1727 149.73)
Lab lab(62.34 -55.58 36.01) color: lab(62.34 -55.58 36.01)
LCH lch(62.34 66.23 147.06) color: lch(62.34 66.23 147.06)

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 2.93:1
vs Black 7.16:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#5C5E69 — rgb(92, 94, 105)

Deuteranopia (Green-blind)

#544A6E — rgb(84, 74, 110)

Tritanopia (Blue-blind)

#267A7E — rgb(38, 122, 126)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(142, 70%, 40%);

text

color: hsl(142, 70%, 40%);

border

border: 2px solid hsl(142, 70%, 40%);

gradient light

background: linear-gradient(to right, hsl(142, 70%, 60%), hsl(142, 70%, 40%));

gradient dark

background: linear-gradient(to right, hsl(142, 70%, 40%), hsl(142, 70%, 20%))

hex

background-color: #1FAD53;

tailwind

bg-[hsl(142,70%,40%)]

box shadow

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

css variable

--color-primary: hsl(142, 70%, 40%);

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(142, 70%, 40%)?

HEX: #1FAD53 | RGB: rgb(31, 173, 83) | CMYK: 82%, 0%, 52%, 32% | HSV: 142°, 82%, 68%. Copy any format from the conversion table above.

What colors go well with #1FAD53?

The complementary color is HSL(322, 70%, 40%). For a triadic harmony, use hues 142°, 262°, and 22°. For analogous combinations, try hues 112° and 172°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(142, 70%, 40%) in CSS?

As HSL: color: hsl(142, 70%, 40%); — As HEX: color: #1FAD53; — As RGB: color: rgb(31, 173, 83); — Tailwind CSS: bg-[hsl(142,70%,40%)] — CSS variable: --color-primary: hsl(142, 70%, 40%);