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
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
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
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
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%);