HSL(125, 40%, 31%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(125,40%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(125, 40%, 31%) color: hsl(125, 40%, 31%)
HEX #2F6F35 color: #2F6F35
RGB rgb(47, 111, 53) color: rgb(47, 111, 53)
CMYK cmyk(58%, 0%, 52%, 56%)
HSV hsv(126, 58%, 44%)
HWB hwb(126 18% 56%) color: hwb(126 18% 56%)
OKLCH oklch(0.4849 0.1111 145.39) color: oklch(0.4849 0.1111 145.39)
Lab lab(41.58 -33.74 26.1) color: lab(41.58 -33.74 26.1)
LCH lch(41.58 42.66 142.28) color: lch(41.58 42.66 142.28)

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 6.09:1
vs Black 3.45:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#4B4B43 — rgb(75, 75, 67)

Deuteranopia (Green-blind)

#474246 — rgb(71, 66, 70)

Tritanopia (Blue-blind)

#324E51 — rgb(50, 78, 81)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(125, 40%, 31%);

text

color: hsl(125, 40%, 31%);

border

border: 2px solid hsl(125, 40%, 31%);

gradient light

background: linear-gradient(to right, hsl(125, 40%, 51%), hsl(125, 40%, 31%));

gradient dark

background: linear-gradient(to right, hsl(125, 40%, 31%), hsl(125, 40%, 11%))

hex

background-color: #2F6F35;

tailwind

bg-[hsl(125,40%,31%)]

box shadow

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

css variable

--color-primary: hsl(125, 40%, 31%);

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(125, 40%, 31%)?

HEX: #2F6F35 | RGB: rgb(47, 111, 53) | CMYK: 58%, 0%, 52%, 56% | HSV: 126°, 58%, 44%. Copy any format from the conversion table above.

What colors go well with #2F6F35?

The complementary color is HSL(305, 40%, 31%). For a triadic harmony, use hues 125°, 245°, and 5°. For analogous combinations, try hues 95° and 155°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(125, 40%, 31%) in CSS?

As HSL: color: hsl(125, 40%, 31%); — As HEX: color: #2F6F35; — As RGB: color: rgb(47, 111, 53); — Tailwind CSS: bg-[hsl(125,40%,31%)] — CSS variable: --color-primary: hsl(125, 40%, 31%);