HSL(97, 77%, 31%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(97,77%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(97, 77%, 31%) | color: hsl(97, 77%, 31%) | |
| HEX | #418C12 | color: #418C12 | |
| RGB | rgb(65, 140, 18) | color: rgb(65, 140, 18) | |
| CMYK | cmyk(54%, 0%, 87%, 45%) | — | |
| HSV | hsv(97, 87%, 55%) | — | |
| HWB | hwb(97 7% 45%) | color: hwb(97 7% 45%) | |
| OKLCH | oklch(0.5697 0.1653 137.08) | color: oklch(0.5697 0.1653 137.08) | |
| Lab | lab(51.75 -43.54 51.43) | color: lab(51.75 -43.54 51.43) | |
| LCH | lch(51.75 67.39 130.25) | color: lch(51.75 67.39 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: black
Color Blindness Simulation
Protanopia (Red-blind)
#616230 — rgb(97, 98, 48)
Deuteranopia (Green-blind)
#5D5837 — rgb(93, 88, 55)
Tritanopia (Blue-blind)
#45474C — rgb(69, 71, 76)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(97, 77%, 31%);
text
color: hsl(97, 77%, 31%);
border
border: 2px solid hsl(97, 77%, 31%);
gradient light
background: linear-gradient(to right, hsl(97, 77%, 51%), hsl(97, 77%, 31%));
gradient dark
background: linear-gradient(to right, hsl(97, 77%, 31%), hsl(97, 77%, 11%))
hex
background-color: #418C12;
tailwind
bg-[hsl(97,77%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(97, 77%, 31%, 0.4);
css variable
--color-primary: hsl(97, 77%, 31%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(97, 77%, 31%)?
HEX: #418C12 | RGB: rgb(65, 140, 18) | CMYK: 54%, 0%, 87%, 45% | HSV: 97°, 87%, 55%. Copy any format from the conversion table above.
What colors go well with #418C12?
The complementary color is HSL(277, 77%, 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, 77%, 31%) in CSS?
As HSL: color: hsl(97, 77%, 31%); — As HEX: color: #418C12; — As RGB: color: rgb(65, 140, 18); — Tailwind CSS: bg-[hsl(97,77%,31%)] — CSS variable: --color-primary: hsl(97, 77%, 31%);