HSL(122, 28%, 25%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(122,28%,25%)]

Color Conversions

Format Value CSS Usage
HSL hsl(122, 28%, 25%) color: hsl(122, 28%, 25%)
HEX #2E522F color: #2E522F
RGB rgb(46, 82, 47) color: rgb(46, 82, 47)
CMYK cmyk(44%, 0%, 43%, 68%)
HSV hsv(122, 44%, 32%)
HWB hwb(122 18% 68%) color: hwb(122 18% 68%)
OKLCH oklch(0.4012 0.0712 144.7) color: oklch(0.4012 0.0712 144.7)
Lab lab(31.39 -21.33 16.59) color: lab(31.39 -21.33 16.59)
LCH lch(31.39 27.02 142.13) color: lch(31.39 27.02 142.13)

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 8.88:1
vs Black 2.36: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)

#3E3E37 — rgb(62, 62, 55)

Deuteranopia (Green-blind)

#3C393A — rgb(60, 57, 58)

Tritanopia (Blue-blind)

#303E40 — rgb(48, 62, 64)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(122, 28%, 25%);

text

color: hsl(122, 28%, 25%);

border

border: 2px solid hsl(122, 28%, 25%);

gradient light

background: linear-gradient(to right, hsl(122, 28%, 45%), hsl(122, 28%, 25%));

gradient dark

background: linear-gradient(to right, hsl(122, 28%, 25%), hsl(122, 28%, 5%))

hex

background-color: #2E522F;

tailwind

bg-[hsl(122,28%,25%)]

box shadow

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

css variable

--color-primary: hsl(122, 28%, 25%);

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(122, 28%, 25%)?

HEX: #2E522F | RGB: rgb(46, 82, 47) | CMYK: 44%, 0%, 43%, 68% | HSV: 122°, 44%, 32%. Copy any format from the conversion table above.

What colors go well with #2E522F?

The complementary color is HSL(302, 28%, 25%). For a triadic harmony, use hues 122°, 242°, and 2°. For analogous combinations, try hues 92° and 152°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(122, 28%, 25%) in CSS?

As HSL: color: hsl(122, 28%, 25%); — As HEX: color: #2E522F; — As RGB: color: rgb(46, 82, 47); — Tailwind CSS: bg-[hsl(122,28%,25%)] — CSS variable: --color-primary: hsl(122, 28%, 25%);