HSL(102, 28%, 42%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(102,28%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(102, 28%, 42%) color: hsl(102, 28%, 42%)
HEX #5F894D color: #5F894D
RGB rgb(95, 137, 77) color: rgb(95, 137, 77)
CMYK cmyk(31%, 0%, 44%, 46%)
HSV hsv(102, 44%, 54%)
HWB hwb(102 30% 46%) color: hwb(102 30% 46%)
OKLCH oklch(0.5839 0.0988 136.83) color: oklch(0.5839 0.0988 136.83)
Lab lab(52.8 -26.31 27.62) color: lab(52.8 -26.31 27.62)
LCH lch(52.8 38.15 133.61) color: lch(52.8 38.15 133.61)

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 4.06:1
vs Black 5.17:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#71725C — rgb(113, 114, 92)

Deuteranopia (Green-blind)

#6F6C5F — rgb(111, 108, 95)

Tritanopia (Blue-blind)

#61676A — rgb(97, 103, 106)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(102, 28%, 42%);

text

color: hsl(102, 28%, 42%);

border

border: 2px solid hsl(102, 28%, 42%);

gradient light

background: linear-gradient(to right, hsl(102, 28%, 62%), hsl(102, 28%, 42%));

gradient dark

background: linear-gradient(to right, hsl(102, 28%, 42%), hsl(102, 28%, 22%))

hex

background-color: #5F894D;

tailwind

bg-[hsl(102,28%,42%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(102, 28%, 42%, 0.4);

css variable

--color-primary: hsl(102, 28%, 42%);

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(102, 28%, 42%)?

HEX: #5F894D | RGB: rgb(95, 137, 77) | CMYK: 31%, 0%, 44%, 46% | HSV: 102°, 44%, 54%. Copy any format from the conversion table above.

What colors go well with #5F894D?

The complementary color is HSL(282, 28%, 42%). For a triadic harmony, use hues 102°, 222°, and 342°. For analogous combinations, try hues 72° and 132°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(102, 28%, 42%) in CSS?

As HSL: color: hsl(102, 28%, 42%); — As HEX: color: #5F894D; — As RGB: color: rgb(95, 137, 77); — Tailwind CSS: bg-[hsl(102,28%,42%)] — CSS variable: --color-primary: hsl(102, 28%, 42%);