HSL(87, 20%, 46%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(87,20%,46%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(87, 20%, 46%) | color: hsl(87, 20%, 46%) | |
| HEX | #788D5E | color: #788D5E | |
| RGB | rgb(120, 141, 94) | color: rgb(120, 141, 94) | |
| CMYK | cmyk(15%, 0%, 33%, 45%) | — | |
| HSV | hsv(87, 33%, 55%) | — | |
| HWB | hwb(87 37% 45%) | color: hwb(87 37% 45%) | |
| OKLCH | oklch(0.6144 0.0717 127.93) | color: oklch(0.6144 0.0717 127.93) | |
| Lab | lab(55.94 -16.24 22.67) | color: lab(55.94 -16.24 22.67) | |
| LCH | lch(55.94 27.89 125.62) | color: lch(55.94 27.89 125.62) |
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)
#818169 — rgb(129, 129, 105)
Deuteranopia (Green-blind)
#807E6C — rgb(128, 126, 108)
Tritanopia (Blue-blind)
#797274 — rgb(121, 114, 116)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(87, 20%, 46%);
text
color: hsl(87, 20%, 46%);
border
border: 2px solid hsl(87, 20%, 46%);
gradient light
background: linear-gradient(to right, hsl(87, 20%, 66%), hsl(87, 20%, 46%));
gradient dark
background: linear-gradient(to right, hsl(87, 20%, 46%), hsl(87, 20%, 26%))
hex
background-color: #788D5E;
tailwind
bg-[hsl(87,20%,46%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(87, 20%, 46%, 0.4);
css variable
--color-primary: hsl(87, 20%, 46%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(87, 20%, 46%)?
HEX: #788D5E | RGB: rgb(120, 141, 94) | CMYK: 15%, 0%, 33%, 45% | HSV: 87°, 33%, 55%. Copy any format from the conversion table above.
What colors go well with #788D5E?
The complementary color is HSL(267, 20%, 46%). For a triadic harmony, use hues 87°, 207°, and 327°. For analogous combinations, try hues 57° and 117°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(87, 20%, 46%) in CSS?
As HSL: color: hsl(87, 20%, 46%); — As HEX: color: #788D5E; — As RGB: color: rgb(120, 141, 94); — Tailwind CSS: bg-[hsl(87,20%,46%)] — CSS variable: --color-primary: hsl(87, 20%, 46%);