HSL(127, 48%, 34%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(127,48%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(127, 48%, 34%) color: hsl(127, 48%, 34%)
HEX #2D8037 color: #2D8037
RGB rgb(45, 128, 55) color: rgb(45, 128, 55)
CMYK cmyk(65%, 0%, 57%, 50%)
HSV hsv(127, 65%, 50%)
HWB hwb(127 18% 50%) color: hwb(127 18% 50%)
OKLCH oklch(0.5322 0.1347 145.45) color: oklch(0.5322 0.1347 145.45)
Lab lab(47.33 -41 32.02) color: lab(47.33 -41 32.02)
LCH lch(47.33 52.02 142.01) color: lch(47.33 52.02 142.01)

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.94:1
vs Black 4.25: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)

#515249 — rgb(81, 82, 73)

Deuteranopia (Green-blind)

#4C464D — rgb(76, 70, 77)

Tritanopia (Blue-blind)

#31575A — rgb(49, 87, 90)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(127, 48%, 34%);

text

color: hsl(127, 48%, 34%);

border

border: 2px solid hsl(127, 48%, 34%);

gradient light

background: linear-gradient(to right, hsl(127, 48%, 54%), hsl(127, 48%, 34%));

gradient dark

background: linear-gradient(to right, hsl(127, 48%, 34%), hsl(127, 48%, 14%))

hex

background-color: #2D8037;

tailwind

bg-[hsl(127,48%,34%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(127, 48%, 34%, 0.4);

css variable

--color-primary: hsl(127, 48%, 34%);

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(127, 48%, 34%)?

HEX: #2D8037 | RGB: rgb(45, 128, 55) | CMYK: 65%, 0%, 57%, 50% | HSV: 127°, 65%, 50%. Copy any format from the conversion table above.

What colors go well with #2D8037?

The complementary color is HSL(307, 48%, 34%). For a triadic harmony, use hues 127°, 247°, and 7°. For analogous combinations, try hues 97° and 157°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(127, 48%, 34%) in CSS?

As HSL: color: hsl(127, 48%, 34%); — As HEX: color: #2D8037; — As RGB: color: rgb(45, 128, 55); — Tailwind CSS: bg-[hsl(127,48%,34%)] — CSS variable: --color-primary: hsl(127, 48%, 34%);