HSL(122, 76%, 18%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(122,76%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(122, 76%, 18%) | color: hsl(122, 76%, 18%) | |
| HEX | #0B510D | color: #0B510D | |
| RGB | rgb(11, 81, 13) | color: rgb(11, 81, 13) | |
| CMYK | cmyk(86%, 0%, 84%, 68%) | — | |
| HSV | hsv(122, 86%, 32%) | — | |
| HWB | hwb(122 4% 68%) | color: hwb(122 4% 68%) | |
| OKLCH | oklch(0.3797 0.1185 143.07) | color: oklch(0.3797 0.1185 143.07) | |
| Lab | lab(29.37 -34.92 31.72) | color: lab(29.37 -34.92 31.72) | |
| LCH | lch(29.37 47.18 137.75) | color: lch(29.37 47.18 137.75) |
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)
#292A1D — rgb(41, 42, 29)
Deuteranopia (Green-blind)
#252021 — rgb(37, 32, 33)
Tritanopia (Blue-blind)
#0F2A2D — rgb(15, 42, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(122, 76%, 18%);
text
color: hsl(122, 76%, 18%);
border
border: 2px solid hsl(122, 76%, 18%);
gradient light
background: linear-gradient(to right, hsl(122, 76%, 38%), hsl(122, 76%, 18%));
gradient dark
background: linear-gradient(to right, hsl(122, 76%, 18%), hsl(122, 76%, 0%))
hex
background-color: #0B510D;
tailwind
bg-[hsl(122,76%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(122, 76%, 18%, 0.4);
css variable
--color-primary: hsl(122, 76%, 18%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(122, 76%, 18%)?
HEX: #0B510D | RGB: rgb(11, 81, 13) | CMYK: 86%, 0%, 84%, 68% | HSV: 122°, 86%, 32%. Copy any format from the conversion table above.
What colors go well with #0B510D?
The complementary color is HSL(302, 76%, 18%). For a triadic harmony, use hues 122°, 242°, and 2°. For analogous combinations, try hues 92° and 152°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(122, 76%, 18%) in CSS?
As HSL: color: hsl(122, 76%, 18%); — As HEX: color: #0B510D; — As RGB: color: rgb(11, 81, 13); — Tailwind CSS: bg-[hsl(122,76%,18%)] — CSS variable: --color-primary: hsl(122, 76%, 18%);