HSL(126, 20%, 50%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,20%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 20%, 50%) | color: hsl(126, 20%, 50%) | |
| HEX | #66996B | color: #66996B | |
| RGB | rgb(102, 153, 107) | color: rgb(102, 153, 107) | |
| CMYK | cmyk(33%, 0%, 30%, 40%) | — | |
| HSV | hsv(126, 33%, 60%) | — | |
| HWB | hwb(126 40% 40%) | color: hwb(126 40% 40%) | |
| OKLCH | oklch(0.6342 0.0875 146.85) | color: oklch(0.6342 0.0875 146.85) | |
| Lab | lab(58.67 -26.82 18.92) | color: lab(58.67 -26.82 18.92) | |
| LCH | lch(58.67 32.82 144.8) | color: lch(58.67 32.82 144.8) |
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)
#7C7D76 — rgb(124, 125, 118)
Deuteranopia (Green-blind)
#797579 — rgb(121, 117, 121)
Tritanopia (Blue-blind)
#697F81 — rgb(105, 127, 129)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 20%, 50%);
text
color: hsl(126, 20%, 50%);
border
border: 2px solid hsl(126, 20%, 50%);
gradient light
background: linear-gradient(to right, hsl(126, 20%, 70%), hsl(126, 20%, 50%));
gradient dark
background: linear-gradient(to right, hsl(126, 20%, 50%), hsl(126, 20%, 30%))
hex
background-color: #66996B;
tailwind
bg-[hsl(126,20%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 20%, 50%, 0.4);
css variable
--color-primary: hsl(126, 20%, 50%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(126, 20%, 50%)?
HEX: #66996B | RGB: rgb(102, 153, 107) | CMYK: 33%, 0%, 30%, 40% | HSV: 126°, 33%, 60%. Copy any format from the conversion table above.
What colors go well with #66996B?
The complementary color is HSL(306, 20%, 50%). For a triadic harmony, use hues 126°, 246°, and 6°. For analogous combinations, try hues 96° and 156°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(126, 20%, 50%) in CSS?
As HSL: color: hsl(126, 20%, 50%); — As HEX: color: #66996B; — As RGB: color: rgb(102, 153, 107); — Tailwind CSS: bg-[hsl(126,20%,50%)] — CSS variable: --color-primary: hsl(126, 20%, 50%);