HSL(87, 86%, 17%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(87,86%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(87, 86%, 17%) | color: hsl(87, 86%, 17%) | |
| HEX | #2F5106 | color: #2F5106 | |
| RGB | rgb(47, 81, 6) | color: rgb(47, 81, 6) | |
| CMYK | cmyk(42%, 0%, 93%, 68%) | — | |
| HSV | hsv(87, 93%, 32%) | — | |
| HWB | hwb(87 2% 68%) | color: hwb(87 2% 68%) | |
| OKLCH | oklch(0.3938 0.1055 132.31) | color: oklch(0.3938 0.1055 132.31) | |
| Lab | lab(30.65 -25.03 35.81) | color: lab(30.65 -25.03 35.81) | |
| LCH | lch(30.65 43.69 124.95) | color: lch(30.65 43.69 124.95) |
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)
#3E3E18 — rgb(62, 62, 24)
Deuteranopia (Green-blind)
#3C391D — rgb(60, 57, 29)
Tritanopia (Blue-blind)
#31262A — rgb(49, 38, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(87, 86%, 17%);
text
color: hsl(87, 86%, 17%);
border
border: 2px solid hsl(87, 86%, 17%);
gradient light
background: linear-gradient(to right, hsl(87, 86%, 37%), hsl(87, 86%, 17%));
gradient dark
background: linear-gradient(to right, hsl(87, 86%, 17%), hsl(87, 86%, 0%))
hex
background-color: #2F5106;
tailwind
bg-[hsl(87,86%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(87, 86%, 17%, 0.4);
css variable
--color-primary: hsl(87, 86%, 17%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(87, 86%, 17%)?
HEX: #2F5106 | RGB: rgb(47, 81, 6) | CMYK: 42%, 0%, 93%, 68% | HSV: 87°, 93%, 32%. Copy any format from the conversion table above.
What colors go well with #2F5106?
The complementary color is HSL(267, 86%, 17%). 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, 86%, 17%) in CSS?
As HSL: color: hsl(87, 86%, 17%); — As HEX: color: #2F5106; — As RGB: color: rgb(47, 81, 6); — Tailwind CSS: bg-[hsl(87,86%,17%)] — CSS variable: --color-primary: hsl(87, 86%, 17%);