HSL(118, 40%, 54%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(118,40%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(118, 40%, 54%) | color: hsl(118, 40%, 54%) | |
| HEX | #5EB95B | color: #5EB95B | |
| RGB | rgb(94, 185, 91) | color: rgb(94, 185, 91) | |
| CMYK | cmyk(49%, 0%, 51%, 27%) | — | |
| HSV | hsv(118, 51%, 73%) | — | |
| HWB | hwb(118 36% 27%) | color: hwb(118 36% 27%) | |
| OKLCH | oklch(0.7075 0.1574 143.09) | color: oklch(0.7075 0.1574 143.09) | |
| Lab | lab(67.9 -46.24 39.24) | color: lab(67.9 -46.24 39.24) | |
| LCH | lch(67.9 60.65 139.68) | color: lch(67.9 60.65 139.68) |
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)
#858672 — rgb(133, 134, 114)
Deuteranopia (Green-blind)
#807977 — rgb(128, 121, 119)
Tritanopia (Blue-blind)
#638488 — rgb(99, 132, 136)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(118, 40%, 54%);
text
color: hsl(118, 40%, 54%);
border
border: 2px solid hsl(118, 40%, 54%);
gradient light
background: linear-gradient(to right, hsl(118, 40%, 74%), hsl(118, 40%, 54%));
gradient dark
background: linear-gradient(to right, hsl(118, 40%, 54%), hsl(118, 40%, 34%))
hex
background-color: #5EB95B;
tailwind
bg-[hsl(118,40%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(118, 40%, 54%, 0.4);
css variable
--color-primary: hsl(118, 40%, 54%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(118, 40%, 54%)?
HEX: #5EB95B | RGB: rgb(94, 185, 91) | CMYK: 49%, 0%, 51%, 27% | HSV: 118°, 51%, 73%. Copy any format from the conversion table above.
What colors go well with #5EB95B?
The complementary color is HSL(298, 40%, 54%). 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, 40%, 54%) in CSS?
As HSL: color: hsl(118, 40%, 54%); — As HEX: color: #5EB95B; — As RGB: color: rgb(94, 185, 91); — Tailwind CSS: bg-[hsl(118,40%,54%)] — CSS variable: --color-primary: hsl(118, 40%, 54%);