HSL(96, 85%, 31%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(96,85%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(96, 85%, 31%) | color: hsl(96, 85%, 31%) | |
| HEX | #42920C | color: #42920C | |
| RGB | rgb(66, 146, 12) | color: rgb(66, 146, 12) | |
| CMYK | cmyk(55%, 0%, 92%, 43%) | — | |
| HSV | hsv(96, 92%, 57%) | — | |
| HWB | hwb(96 5% 43%) | color: hwb(96 5% 43%) | |
| OKLCH | oklch(0.5862 0.1737 137.13) | color: oklch(0.5862 0.1737 137.13) | |
| Lab | lab(53.75 -45.77 54.44) | color: lab(53.75 -45.77 54.44) | |
| LCH | lch(53.75 71.12 130.06) | color: lch(53.75 71.12 130.06) |
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)
#65652C — rgb(101, 101, 44)
Deuteranopia (Green-blind)
#605A34 — rgb(96, 90, 52)
Tritanopia (Blue-blind)
#46464C — rgb(70, 70, 76)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(96, 85%, 31%);
text
color: hsl(96, 85%, 31%);
border
border: 2px solid hsl(96, 85%, 31%);
gradient light
background: linear-gradient(to right, hsl(96, 85%, 51%), hsl(96, 85%, 31%));
gradient dark
background: linear-gradient(to right, hsl(96, 85%, 31%), hsl(96, 85%, 11%))
hex
background-color: #42920C;
tailwind
bg-[hsl(96,85%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(96, 85%, 31%, 0.4);
css variable
--color-primary: hsl(96, 85%, 31%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(96, 85%, 31%)?
HEX: #42920C | RGB: rgb(66, 146, 12) | CMYK: 55%, 0%, 92%, 43% | HSV: 96°, 92%, 57%. Copy any format from the conversion table above.
What colors go well with #42920C?
The complementary color is HSL(276, 85%, 31%). For a triadic harmony, use hues 96°, 216°, and 336°. For analogous combinations, try hues 66° and 126°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(96, 85%, 31%) in CSS?
As HSL: color: hsl(96, 85%, 31%); — As HEX: color: #42920C; — As RGB: color: rgb(66, 146, 12); — Tailwind CSS: bg-[hsl(96,85%,31%)] — CSS variable: --color-primary: hsl(96, 85%, 31%);