HSL(87, 42%, 17%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(87,42%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(87, 42%, 17%) | color: hsl(87, 42%, 17%) | |
| HEX | #2D3E19 | color: #2D3E19 | |
| RGB | rgb(45, 62, 25) | color: rgb(45, 62, 25) | |
| CMYK | cmyk(27%, 0%, 60%, 76%) | — | |
| HSV | hsv(88, 60%, 24%) | — | |
| HWB | hwb(88 10% 76%) | color: hwb(88 10% 76%) | |
| OKLCH | oklch(0.3391 0.0628 129.64) | color: oklch(0.3391 0.0628 129.64) | |
| Lab | lab(23.91 -14.37 20.36) | color: lab(23.91 -14.37 20.36) | |
| LCH | lch(23.91 24.92 125.21) | color: lch(23.91 24.92 125.21) |
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)
#343522 — rgb(52, 53, 34)
Deuteranopia (Green-blind)
#333224 — rgb(51, 50, 36)
Tritanopia (Blue-blind)
#2E292B — rgb(46, 41, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(87, 42%, 17%);
text
color: hsl(87, 42%, 17%);
border
border: 2px solid hsl(87, 42%, 17%);
gradient light
background: linear-gradient(to right, hsl(87, 42%, 37%), hsl(87, 42%, 17%));
gradient dark
background: linear-gradient(to right, hsl(87, 42%, 17%), hsl(87, 42%, 0%))
hex
background-color: #2D3E19;
tailwind
bg-[hsl(87,42%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(87, 42%, 17%, 0.4);
css variable
--color-primary: hsl(87, 42%, 17%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(87, 42%, 17%)?
HEX: #2D3E19 | RGB: rgb(45, 62, 25) | CMYK: 27%, 0%, 60%, 76% | HSV: 88°, 60%, 24%. Copy any format from the conversion table above.
What colors go well with #2D3E19?
The complementary color is HSL(267, 42%, 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, 42%, 17%) in CSS?
As HSL: color: hsl(87, 42%, 17%); — As HEX: color: #2D3E19; — As RGB: color: rgb(45, 62, 25); — Tailwind CSS: bg-[hsl(87,42%,17%)] — CSS variable: --color-primary: hsl(87, 42%, 17%);