HSL(97, 52%, 20%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(97,52%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(97, 52%, 20%) | color: hsl(97, 52%, 20%) | |
| HEX | #2D4E18 | color: #2D4E18 | |
| RGB | rgb(45, 78, 24) | color: rgb(45, 78, 24) | |
| CMYK | cmyk(42%, 0%, 69%, 69%) | — | |
| HSV | hsv(97, 69%, 31%) | — | |
| HWB | hwb(97 10% 69%) | color: hwb(97 10% 69%) | |
| OKLCH | oklch(0.3853 0.0901 135.25) | color: oklch(0.3853 0.0901 135.25) | |
| Lab | lab(29.59 -23.03 27.41) | color: lab(29.59 -23.03 27.41) | |
| LCH | lch(29.59 35.8 130.04) | color: lch(29.59 35.8 130.04) |
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)
#3B3C25 — rgb(59, 60, 37)
Deuteranopia (Green-blind)
#393728 — rgb(57, 55, 40)
Tritanopia (Blue-blind)
#2F2F32 — rgb(47, 47, 50)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(97, 52%, 20%);
text
color: hsl(97, 52%, 20%);
border
border: 2px solid hsl(97, 52%, 20%);
gradient light
background: linear-gradient(to right, hsl(97, 52%, 40%), hsl(97, 52%, 20%));
gradient dark
background: linear-gradient(to right, hsl(97, 52%, 20%), hsl(97, 52%, 0%))
hex
background-color: #2D4E18;
tailwind
bg-[hsl(97,52%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(97, 52%, 20%, 0.4);
css variable
--color-primary: hsl(97, 52%, 20%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(97, 52%, 20%)?
HEX: #2D4E18 | RGB: rgb(45, 78, 24) | CMYK: 42%, 0%, 69%, 69% | HSV: 97°, 69%, 31%. Copy any format from the conversion table above.
What colors go well with #2D4E18?
The complementary color is HSL(277, 52%, 20%). For a triadic harmony, use hues 97°, 217°, and 337°. For analogous combinations, try hues 67° and 127°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(97, 52%, 20%) in CSS?
As HSL: color: hsl(97, 52%, 20%); — As HEX: color: #2D4E18; — As RGB: color: rgb(45, 78, 24); — Tailwind CSS: bg-[hsl(97,52%,20%)] — CSS variable: --color-primary: hsl(97, 52%, 20%);