HSL(97, 40%, 31%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(97,40%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(97, 40%, 31%) | color: hsl(97, 40%, 31%) | |
| HEX | #486F2F | color: #486F2F | |
| RGB | rgb(72, 111, 47) | color: rgb(72, 111, 47) | |
| CMYK | cmyk(35%, 0%, 58%, 56%) | — | |
| HSV | hsv(97, 58%, 44%) | — | |
| HWB | hwb(97 18% 56%) | color: hwb(97 18% 56%) | |
| OKLCH | oklch(0.497 0.103 134.73) | color: oklch(0.497 0.103 134.73) | |
| Lab | lab(42.69 -26.18 30.93) | color: lab(42.69 -26.18 30.93) | |
| LCH | lch(42.69 40.52 130.25) | color: lch(42.69 40.52 130.25) |
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)
#59593E — rgb(89, 89, 62)
Deuteranopia (Green-blind)
#575442 — rgb(87, 84, 66)
Tritanopia (Blue-blind)
#4A4B4D — rgb(74, 75, 77)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(97, 40%, 31%);
text
color: hsl(97, 40%, 31%);
border
border: 2px solid hsl(97, 40%, 31%);
gradient light
background: linear-gradient(to right, hsl(97, 40%, 51%), hsl(97, 40%, 31%));
gradient dark
background: linear-gradient(to right, hsl(97, 40%, 31%), hsl(97, 40%, 11%))
hex
background-color: #486F2F;
tailwind
bg-[hsl(97,40%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(97, 40%, 31%, 0.4);
css variable
--color-primary: hsl(97, 40%, 31%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(97, 40%, 31%)?
HEX: #486F2F | RGB: rgb(72, 111, 47) | CMYK: 35%, 0%, 58%, 56% | HSV: 97°, 58%, 44%. Copy any format from the conversion table above.
What colors go well with #486F2F?
The complementary color is HSL(277, 40%, 31%). 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, 40%, 31%) in CSS?
As HSL: color: hsl(97, 40%, 31%); — As HEX: color: #486F2F; — As RGB: color: rgb(72, 111, 47); — Tailwind CSS: bg-[hsl(97,40%,31%)] — CSS variable: --color-primary: hsl(97, 40%, 31%);