HSL(87, 42%, 31%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(87,42%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(87, 42%, 31%) | color: hsl(87, 42%, 31%) | |
| HEX | #52702E | color: #52702E | |
| RGB | rgb(82, 112, 46) | color: rgb(82, 112, 46) | |
| CMYK | cmyk(27%, 0%, 59%, 56%) | — | |
| HSV | hsv(87, 59%, 44%) | — | |
| HWB | hwb(87 18% 56%) | color: hwb(87 18% 56%) | |
| OKLCH | oklch(0.5062 0.0999 129.75) | color: oklch(0.5062 0.0999 129.75) | |
| Lab | lab(43.62 -22.8 32.69) | color: lab(43.62 -22.8 32.69) | |
| LCH | lch(43.62 39.86 124.89) | color: lch(43.62 39.86 124.89) |
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: white
Color Blindness Simulation
Protanopia (Red-blind)
#5F5F3E — rgb(95, 95, 62)
Deuteranopia (Green-blind)
#5D5B42 — rgb(93, 91, 66)
Tritanopia (Blue-blind)
#544B4D — rgb(84, 75, 77)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(87, 42%, 31%);
text
color: hsl(87, 42%, 31%);
border
border: 2px solid hsl(87, 42%, 31%);
gradient light
background: linear-gradient(to right, hsl(87, 42%, 51%), hsl(87, 42%, 31%));
gradient dark
background: linear-gradient(to right, hsl(87, 42%, 31%), hsl(87, 42%, 11%))
hex
background-color: #52702E;
tailwind
bg-[hsl(87,42%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(87, 42%, 31%, 0.4);
css variable
--color-primary: hsl(87, 42%, 31%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(87, 42%, 31%)?
HEX: #52702E | RGB: rgb(82, 112, 46) | CMYK: 27%, 0%, 59%, 56% | HSV: 87°, 59%, 44%. Copy any format from the conversion table above.
What colors go well with #52702E?
The complementary color is HSL(267, 42%, 31%). 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, 42%, 31%) in CSS?
As HSL: color: hsl(87, 42%, 31%); — As HEX: color: #52702E; — As RGB: color: rgb(82, 112, 46); — Tailwind CSS: bg-[hsl(87,42%,31%)] — CSS variable: --color-primary: hsl(87, 42%, 31%);