HSL(126, 71%, 29%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,71%,29%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 71%, 29%) | color: hsl(126, 71%, 29%) | |
| HEX | #157E20 | color: #157E20 | |
| RGB | rgb(21, 126, 32) | color: rgb(21, 126, 32) | |
| CMYK | cmyk(83%, 0%, 75%, 51%) | — | |
| HSV | hsv(126, 83%, 49%) | — | |
| HWB | hwb(126 8% 51%) | color: hwb(126 8% 51%) | |
| OKLCH | oklch(0.518 0.1583 143.98) | color: oklch(0.518 0.1583 143.98) | |
| Lab | lab(45.89 -47.35 40.92) | color: lab(45.89 -47.35 40.92) | |
| LCH | lch(45.89 62.58 139.17) | color: lch(45.89 62.58 139.17) |
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)
#424337 — rgb(66, 67, 55)
Deuteranopia (Green-blind)
#3C353C — rgb(60, 53, 60)
Tritanopia (Blue-blind)
#1A494D — rgb(26, 73, 77)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 71%, 29%);
text
color: hsl(126, 71%, 29%);
border
border: 2px solid hsl(126, 71%, 29%);
gradient light
background: linear-gradient(to right, hsl(126, 71%, 49%), hsl(126, 71%, 29%));
gradient dark
background: linear-gradient(to right, hsl(126, 71%, 29%), hsl(126, 71%, 9%))
hex
background-color: #157E20;
tailwind
bg-[hsl(126,71%,29%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 71%, 29%, 0.4);
css variable
--color-primary: hsl(126, 71%, 29%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(126, 71%, 29%)?
HEX: #157E20 | RGB: rgb(21, 126, 32) | CMYK: 83%, 0%, 75%, 51% | HSV: 126°, 83%, 49%. Copy any format from the conversion table above.
What colors go well with #157E20?
The complementary color is HSL(306, 71%, 29%). 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, 71%, 29%) in CSS?
As HSL: color: hsl(126, 71%, 29%); — As HEX: color: #157E20; — As RGB: color: rgb(21, 126, 32); — Tailwind CSS: bg-[hsl(126,71%,29%)] — CSS variable: --color-primary: hsl(126, 71%, 29%);