HSL(118, 61%, 40%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(118,61%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(118, 61%, 40%) | color: hsl(118, 61%, 40%) | |
| HEX | #2CA428 | color: #2CA428 | |
| RGB | rgb(44, 164, 40) | color: rgb(44, 164, 40) | |
| CMYK | cmyk(73%, 0%, 76%, 36%) | — | |
| HSV | hsv(118, 76%, 64%) | — | |
| HWB | hwb(118 15% 36%) | color: hwb(118 15% 36%) | |
| OKLCH | oklch(0.6299 0.1909 142.53) | color: oklch(0.6299 0.1909 142.53) | |
| Lab | lab(59.19 -55.75 51.52) | color: lab(59.19 -55.75 51.52) | |
| LCH | lch(59.19 75.91 137.26) | color: lch(59.19 75.91 137.26) |
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)
#606146 — rgb(96, 97, 70)
Deuteranopia (Green-blind)
#59504D — rgb(89, 80, 77)
Tritanopia (Blue-blind)
#325E63 — rgb(50, 94, 99)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(118, 61%, 40%);
text
color: hsl(118, 61%, 40%);
border
border: 2px solid hsl(118, 61%, 40%);
gradient light
background: linear-gradient(to right, hsl(118, 61%, 60%), hsl(118, 61%, 40%));
gradient dark
background: linear-gradient(to right, hsl(118, 61%, 40%), hsl(118, 61%, 20%))
hex
background-color: #2CA428;
tailwind
bg-[hsl(118,61%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(118, 61%, 40%, 0.4);
css variable
--color-primary: hsl(118, 61%, 40%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(118, 61%, 40%)?
HEX: #2CA428 | RGB: rgb(44, 164, 40) | CMYK: 73%, 0%, 76%, 36% | HSV: 118°, 76%, 64%. Copy any format from the conversion table above.
What colors go well with #2CA428?
The complementary color is HSL(298, 61%, 40%). For a triadic harmony, use hues 118°, 238°, and 358°. For analogous combinations, try hues 88° and 148°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(118, 61%, 40%) in CSS?
As HSL: color: hsl(118, 61%, 40%); — As HEX: color: #2CA428; — As RGB: color: rgb(44, 164, 40); — Tailwind CSS: bg-[hsl(118,61%,40%)] — CSS variable: --color-primary: hsl(118, 61%, 40%);