HSL(120, 50%, 17%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(120,50%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(120, 50%, 17%) | color: hsl(120, 50%, 17%) | |
| HEX | #164116 | color: #164116 | |
| RGB | rgb(22, 65, 22) | color: rgb(22, 65, 22) | |
| CMYK | cmyk(66%, 0%, 66%, 75%) | — | |
| HSV | hsv(120, 66%, 25%) | — | |
| HWB | hwb(120 9% 75%) | color: hwb(120 9% 75%) | |
| OKLCH | oklch(0.3338 0.0851 143.37) | color: oklch(0.3338 0.0851 143.37) | |
| Lab | lab(23.7 -25.13 21.51) | color: lab(23.7 -25.13 21.51) | |
| LCH | lch(23.7 33.08 139.44) | color: lch(23.7 33.08 139.44) |
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)
#292920 — rgb(41, 41, 32)
Deuteranopia (Green-blind)
#262323 — rgb(38, 35, 35)
Tritanopia (Blue-blind)
#18292A — rgb(24, 41, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(120, 50%, 17%);
text
color: hsl(120, 50%, 17%);
border
border: 2px solid hsl(120, 50%, 17%);
gradient light
background: linear-gradient(to right, hsl(120, 50%, 37%), hsl(120, 50%, 17%));
gradient dark
background: linear-gradient(to right, hsl(120, 50%, 17%), hsl(120, 50%, 0%))
hex
background-color: #164116;
tailwind
bg-[hsl(120,50%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(120, 50%, 17%, 0.4);
css variable
--color-primary: hsl(120, 50%, 17%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(120, 50%, 17%)?
HEX: #164116 | RGB: rgb(22, 65, 22) | CMYK: 66%, 0%, 66%, 75% | HSV: 120°, 66%, 25%. Copy any format from the conversion table above.
What colors go well with #164116?
The complementary color is HSL(300, 50%, 17%). For a triadic harmony, use hues 120°, 240°, and 0°. For analogous combinations, try hues 90° and 150°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(120, 50%, 17%) in CSS?
As HSL: color: hsl(120, 50%, 17%); — As HEX: color: #164116; — As RGB: color: rgb(22, 65, 22); — Tailwind CSS: bg-[hsl(120,50%,17%)] — CSS variable: --color-primary: hsl(120, 50%, 17%);