HSL(126, 50%, 33%)

Green — Green color

Adjust Color

Color Information

Color Name

Green

Color Family

Green

Warm / Cool

🔵 Cool

Temperature

5000K

CSS Class

bg-[hsl(126,50%,33%)]

Color Conversions

Format Value CSS Usage
HSL hsl(126, 50%, 33%) color: hsl(126, 50%, 33%)
HEX #2A7E32 color: #2A7E32
RGB rgb(42, 126, 50) color: rgb(42, 126, 50)
CMYK cmyk(67%, 0%, 60%, 51%)
HSV hsv(126, 67%, 49%)
HWB hwb(126 16% 51%) color: hwb(126 16% 51%)
OKLCH oklch(0.5249 0.1377 144.82) color: oklch(0.5249 0.1377 144.82)
Lab lab(46.5 -41.59 33.55) color: lab(46.5 -41.59 33.55)
LCH lch(46.5 53.44 141.11) color: lch(46.5 53.44 141.11)

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.09:1
vs Black 4.13: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)

#4E4F44 — rgb(78, 79, 68)

Deuteranopia (Green-blind)

#4A4349 — rgb(74, 67, 73)

Tritanopia (Blue-blind)

#2E5356 — rgb(46, 83, 86)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(126, 50%, 33%);

text

color: hsl(126, 50%, 33%);

border

border: 2px solid hsl(126, 50%, 33%);

gradient light

background: linear-gradient(to right, hsl(126, 50%, 53%), hsl(126, 50%, 33%));

gradient dark

background: linear-gradient(to right, hsl(126, 50%, 33%), hsl(126, 50%, 13%))

hex

background-color: #2A7E32;

tailwind

bg-[hsl(126,50%,33%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(126, 50%, 33%, 0.4);

css variable

--color-primary: hsl(126, 50%, 33%);

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(126, 50%, 33%)?

HEX: #2A7E32 | RGB: rgb(42, 126, 50) | CMYK: 67%, 0%, 60%, 51% | HSV: 126°, 67%, 49%. Copy any format from the conversion table above.

What colors go well with #2A7E32?

The complementary color is HSL(306, 50%, 33%). For a triadic harmony, use hues 126°, 246°, and 6°. For analogous combinations, try hues 96° and 156°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(126, 50%, 33%) in CSS?

As HSL: color: hsl(126, 50%, 33%); — As HEX: color: #2A7E32; — As RGB: color: rgb(42, 126, 50); — Tailwind CSS: bg-[hsl(126,50%,33%)] — CSS variable: --color-primary: hsl(126, 50%, 33%);