HSL(97, 20%, 52%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(97,20%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(97, 20%, 52%) | color: hsl(97, 20%, 52%) | |
| HEX | #7F9D6C | color: #7F9D6C | |
| RGB | rgb(127, 157, 108) | color: rgb(127, 157, 108) | |
| CMYK | cmyk(19%, 0%, 31%, 38%) | — | |
| HSV | hsv(97, 31%, 62%) | — | |
| HWB | hwb(97 43% 38%) | color: hwb(97 43% 38%) | |
| OKLCH | oklch(0.6603 0.0776 133.74) | color: oklch(0.6603 0.0776 133.74) | |
| Lab | lab(61.4 -19.74 22.32) | color: lab(61.4 -19.74 22.32) | |
| LCH | lch(61.4 29.8 131.49) | color: lch(61.4 29.8 131.49) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#8C8C78 — rgb(140, 140, 120)
Deuteranopia (Green-blind)
#8A887B — rgb(138, 136, 123)
Tritanopia (Blue-blind)
#818183 — rgb(129, 129, 131)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(97, 20%, 52%);
text
color: hsl(97, 20%, 52%);
border
border: 2px solid hsl(97, 20%, 52%);
gradient light
background: linear-gradient(to right, hsl(97, 20%, 72%), hsl(97, 20%, 52%));
gradient dark
background: linear-gradient(to right, hsl(97, 20%, 52%), hsl(97, 20%, 32%))
hex
background-color: #7F9D6C;
tailwind
bg-[hsl(97,20%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(97, 20%, 52%, 0.4);
css variable
--color-primary: hsl(97, 20%, 52%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(97, 20%, 52%)?
HEX: #7F9D6C | RGB: rgb(127, 157, 108) | CMYK: 19%, 0%, 31%, 38% | HSV: 97°, 31%, 62%. Copy any format from the conversion table above.
What colors go well with #7F9D6C?
The complementary color is HSL(277, 20%, 52%). 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, 20%, 52%) in CSS?
As HSL: color: hsl(97, 20%, 52%); — As HEX: color: #7F9D6C; — As RGB: color: rgb(127, 157, 108); — Tailwind CSS: bg-[hsl(97,20%,52%)] — CSS variable: --color-primary: hsl(97, 20%, 52%);