HSL(126, 80%, 22%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(126,80%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(126, 80%, 22%) | color: hsl(126, 80%, 22%) | |
| HEX | #0B6514 | color: #0B6514 | |
| RGB | rgb(11, 101, 20) | color: rgb(11, 101, 20) | |
| CMYK | cmyk(89%, 0%, 80%, 60%) | — | |
| HSV | hsv(126, 89%, 40%) | — | |
| HWB | hwb(126 4% 60%) | color: hwb(126 4% 60%) | |
| OKLCH | oklch(0.4417 0.1384 143.71) | color: oklch(0.4417 0.1384 143.71) | |
| Lab | lab(36.8 -41.26 36.37) | color: lab(36.8 -41.26 36.37) | |
| LCH | lch(36.8 55 138.6) | color: lch(36.8 55 138.6) |
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)
#323328 — rgb(50, 51, 40)
Deuteranopia (Green-blind)
#2D262C — rgb(45, 38, 44)
Tritanopia (Blue-blind)
#10373A — rgb(16, 55, 58)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(126, 80%, 22%);
text
color: hsl(126, 80%, 22%);
border
border: 2px solid hsl(126, 80%, 22%);
gradient light
background: linear-gradient(to right, hsl(126, 80%, 42%), hsl(126, 80%, 22%));
gradient dark
background: linear-gradient(to right, hsl(126, 80%, 22%), hsl(126, 80%, 2%))
hex
background-color: #0B6514;
tailwind
bg-[hsl(126,80%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(126, 80%, 22%, 0.4);
css variable
--color-primary: hsl(126, 80%, 22%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(126, 80%, 22%)?
HEX: #0B6514 | RGB: rgb(11, 101, 20) | CMYK: 89%, 0%, 80%, 60% | HSV: 126°, 89%, 40%. Copy any format from the conversion table above.
What colors go well with #0B6514?
The complementary color is HSL(306, 80%, 22%). 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, 80%, 22%) in CSS?
As HSL: color: hsl(126, 80%, 22%); — As HEX: color: #0B6514; — As RGB: color: rgb(11, 101, 20); — Tailwind CSS: bg-[hsl(126,80%,22%)] — CSS variable: --color-primary: hsl(126, 80%, 22%);