HSL(127, 20%, 45%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(127,20%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(127, 20%, 45%) | color: hsl(127, 20%, 45%) | |
| HEX | #5C8A61 | color: #5C8A61 | |
| RGB | rgb(92, 138, 97) | color: rgb(92, 138, 97) | |
| CMYK | cmyk(33%, 0%, 30%, 46%) | — | |
| HSV | hsv(127, 33%, 54%) | — | |
| HWB | hwb(127 36% 46%) | color: hwb(127 36% 46%) | |
| OKLCH | oklch(0.5887 0.0799 147.16) | color: oklch(0.5887 0.0799 147.16) | |
| Lab | lab(53.29 -24.57 17.11) | color: lab(53.29 -24.57 17.11) | |
| LCH | lch(53.29 29.94 145.15) | color: lch(53.29 29.94 145.15) |
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)
#70706B — rgb(112, 112, 107)
Deuteranopia (Green-blind)
#6D6A6D — rgb(109, 106, 109)
Tritanopia (Blue-blind)
#5E7374 — rgb(94, 115, 116)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(127, 20%, 45%);
text
color: hsl(127, 20%, 45%);
border
border: 2px solid hsl(127, 20%, 45%);
gradient light
background: linear-gradient(to right, hsl(127, 20%, 65%), hsl(127, 20%, 45%));
gradient dark
background: linear-gradient(to right, hsl(127, 20%, 45%), hsl(127, 20%, 25%))
hex
background-color: #5C8A61;
tailwind
bg-[hsl(127,20%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(127, 20%, 45%, 0.4);
css variable
--color-primary: hsl(127, 20%, 45%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(127, 20%, 45%)?
HEX: #5C8A61 | RGB: rgb(92, 138, 97) | CMYK: 33%, 0%, 30%, 46% | HSV: 127°, 33%, 54%. Copy any format from the conversion table above.
What colors go well with #5C8A61?
The complementary color is HSL(307, 20%, 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, 20%, 45%) in CSS?
As HSL: color: hsl(127, 20%, 45%); — As HEX: color: #5C8A61; — As RGB: color: rgb(92, 138, 97); — Tailwind CSS: bg-[hsl(127,20%,45%)] — CSS variable: --color-primary: hsl(127, 20%, 45%);