HSL(122, 52%, 31%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(122,52%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(122, 52%, 31%) color: hsl(122, 52%, 31%)
HEX #267829 color: #267829
RGB rgb(38, 120, 41) color: rgb(38, 120, 41)
CMYK cmyk(68%, 0%, 66%, 53%)
HSV hsv(122, 68%, 47%)
HWB hwb(122 15% 53%) color: hwb(122 15% 53%)
OKLCH oklch(0.5056 0.139 143.7) color: oklch(0.5056 0.139 143.7)
Lab lab(44.24 -41.3 35.32) color: lab(44.24 -41.3 35.32)
LCH lch(44.24 54.34 139.46) color: lch(44.24 54.34 139.46)

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 5.52:1
vs Black 3.8: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)

#4A4A3C — rgb(74, 74, 60)

Deuteranopia (Green-blind)

#453F41 — rgb(69, 63, 65)

Tritanopia (Blue-blind)

#2A4B4F — rgb(42, 75, 79)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(122, 52%, 31%);

text

color: hsl(122, 52%, 31%);

border

border: 2px solid hsl(122, 52%, 31%);

gradient light

background: linear-gradient(to right, hsl(122, 52%, 51%), hsl(122, 52%, 31%));

gradient dark

background: linear-gradient(to right, hsl(122, 52%, 31%), hsl(122, 52%, 11%))

hex

background-color: #267829;

tailwind

bg-[hsl(122,52%,31%)]

box shadow

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

css variable

--color-primary: hsl(122, 52%, 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(122, 52%, 31%)?

HEX: #267829 | RGB: rgb(38, 120, 41) | CMYK: 68%, 0%, 66%, 53% | HSV: 122°, 68%, 47%. Copy any format from the conversion table above.

What colors go well with #267829?

The complementary color is HSL(302, 52%, 31%). 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, 52%, 31%) in CSS?

As HSL: color: hsl(122, 52%, 31%); — As HEX: color: #267829; — As RGB: color: rgb(38, 120, 41); — Tailwind CSS: bg-[hsl(122,52%,31%)] — CSS variable: --color-primary: hsl(122, 52%, 31%);