HSL(127, 40%, 45%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(127,40%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(127, 40%, 45%) | color: hsl(127, 40%, 45%) | |
| HEX | #45A150 | color: #45A150 | |
| RGB | rgb(69, 161, 80) | color: rgb(69, 161, 80) | |
| CMYK | cmyk(57%, 0%, 50%, 37%) | — | |
| HSV | hsv(127, 57%, 63%) | — | |
| HWB | hwb(127 27% 37%) | color: hwb(127 27% 37%) | |
| OKLCH | oklch(0.6338 0.1464 145.87) | color: oklch(0.6338 0.1464 145.87) | |
| Lab | lab(59.28 -44.74 33.94) | color: lab(59.28 -44.74 33.94) | |
| LCH | lch(59.28 56.16 142.82) | color: lch(59.28 56.16 142.82) |
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)
#6D6E64 — rgb(109, 110, 100)
Deuteranopia (Green-blind)
#686168 — rgb(104, 97, 104)
Tritanopia (Blue-blind)
#4A7376 — rgb(74, 115, 118)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(127, 40%, 45%);
text
color: hsl(127, 40%, 45%);
border
border: 2px solid hsl(127, 40%, 45%);
gradient light
background: linear-gradient(to right, hsl(127, 40%, 65%), hsl(127, 40%, 45%));
gradient dark
background: linear-gradient(to right, hsl(127, 40%, 45%), hsl(127, 40%, 25%))
hex
background-color: #45A150;
tailwind
bg-[hsl(127,40%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(127, 40%, 45%, 0.4);
css variable
--color-primary: hsl(127, 40%, 45%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(127, 40%, 45%)?
HEX: #45A150 | RGB: rgb(69, 161, 80) | CMYK: 57%, 0%, 50%, 37% | HSV: 127°, 57%, 63%. Copy any format from the conversion table above.
What colors go well with #45A150?
The complementary color is HSL(307, 40%, 45%). For a triadic harmony, use hues 127°, 247°, and 7°. For analogous combinations, try hues 97° and 157°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(127, 40%, 45%) in CSS?
As HSL: color: hsl(127, 40%, 45%); — As HEX: color: #45A150; — As RGB: color: rgb(69, 161, 80); — Tailwind CSS: bg-[hsl(127,40%,45%)] — CSS variable: --color-primary: hsl(127, 40%, 45%);