HSL(126, 58%, 40%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,58%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 58%, 40%) | color: hsl(126, 58%, 40%) | |
| HEX | #2BA137 | color: #2BA137 | |
| RGB | rgb(43, 161, 55) | color: rgb(43, 161, 55) | |
| CMYK | cmyk(73%, 0%, 66%, 37%) | — | |
| HSV | hsv(126, 73%, 63%) | — | |
| HWB | hwb(126 17% 37%) | color: hwb(126 17% 37%) | |
| OKLCH | oklch(0.6228 0.1779 144.44) | color: oklch(0.6228 0.1779 144.44) | |
| Lab | lab(58.3 -53.52 44.6) | color: lab(58.3 -53.52 44.6) | |
| LCH | lch(58.3 69.67 140.19) | color: lch(58.3 69.67 140.19) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#5E5F51 — rgb(94, 95, 81)
Deuteranopia (Green-blind)
#574E57 — rgb(87, 78, 87)
Tritanopia (Blue-blind)
#316569 — rgb(49, 101, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 58%, 40%);
text
color: hsl(126, 58%, 40%);
border
border: 2px solid hsl(126, 58%, 40%);
gradient light
background: linear-gradient(to right, hsl(126, 58%, 60%), hsl(126, 58%, 40%));
gradient dark
background: linear-gradient(to right, hsl(126, 58%, 40%), hsl(126, 58%, 20%))
hex
background-color: #2BA137;
tailwind
bg-[hsl(126,58%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 58%, 40%, 0.4);
css variable
--color-primary: hsl(126, 58%, 40%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(126, 58%, 40%)?
HEX: #2BA137 | RGB: rgb(43, 161, 55) | CMYK: 73%, 0%, 66%, 37% | HSV: 126°, 73%, 63%. Copy any format from the conversion table above.
What colors go well with #2BA137?
The complementary color is HSL(306, 58%, 40%). 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, 58%, 40%) in CSS?
As HSL: color: hsl(126, 58%, 40%); — As HEX: color: #2BA137; — As RGB: color: rgb(43, 161, 55); — Tailwind CSS: bg-[hsl(126,58%,40%)] — CSS variable: --color-primary: hsl(126, 58%, 40%);