HSL(80, 20%, 18%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
3500K
CSS Class
bg-[hsl(80,20%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(80, 20%, 18%) | color: hsl(80, 20%, 18%) | |
| HEX | #313725 | color: #313725 | |
| RGB | rgb(49, 55, 37) | color: rgb(49, 55, 37) | |
| CMYK | cmyk(11%, 0%, 33%, 78%) | — | |
| HSV | hsv(80, 33%, 22%) | — | |
| HWB | hwb(80 15% 78%) | color: hwb(80 15% 78%) | |
| OKLCH | oklch(0.3254 0.0315 123.11) | color: oklch(0.3254 0.0315 123.11) | |
| Lab | lab(22.01 -6.42 10.47) | color: lab(22.01 -6.42 10.47) | |
| LCH | lch(22.01 12.28 121.52) | color: lch(22.01 12.28 121.52) |
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)
#343429 — rgb(52, 52, 41)
Deuteranopia (Green-blind)
#33332A — rgb(51, 51, 42)
Tritanopia (Blue-blind)
#312D2E — rgb(49, 45, 46)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(80, 20%, 18%);
text
color: hsl(80, 20%, 18%);
border
border: 2px solid hsl(80, 20%, 18%);
gradient light
background: linear-gradient(to right, hsl(80, 20%, 38%), hsl(80, 20%, 18%));
gradient dark
background: linear-gradient(to right, hsl(80, 20%, 18%), hsl(80, 20%, 0%))
hex
background-color: #313725;
tailwind
bg-[hsl(80,20%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(80, 20%, 18%, 0.4);
css variable
--color-primary: hsl(80, 20%, 18%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(80, 20%, 18%)?
HEX: #313725 | RGB: rgb(49, 55, 37) | CMYK: 11%, 0%, 33%, 78% | HSV: 80°, 33%, 22%. Copy any format from the conversion table above.
What colors go well with #313725?
The complementary color is HSL(260, 20%, 18%). For a triadic harmony, use hues 80°, 200°, and 320°. For analogous combinations, try hues 50° and 110°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(80, 20%, 18%) in CSS?
As HSL: color: hsl(80, 20%, 18%); — As HEX: color: #313725; — As RGB: color: rgb(49, 55, 37); — Tailwind CSS: bg-[hsl(80,20%,18%)] — CSS variable: --color-primary: hsl(80, 20%, 18%);