HSL(122, 68%, 42%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(122,68%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(122, 68%, 42%) | color: hsl(122, 68%, 42%) | |
| HEX | #22B427 | color: #22B427 | |
| RGB | rgb(34, 180, 39) | color: rgb(34, 180, 39) | |
| CMYK | cmyk(81%, 0%, 78%, 29%) | — | |
| HSV | hsv(122, 81%, 71%) | — | |
| HWB | hwb(122 13% 29%) | color: hwb(122 13% 29%) | |
| OKLCH | oklch(0.6716 0.2114 143.08) | color: oklch(0.6716 0.2114 143.08) | |
| Lab | lab(64.26 -62.35 56.77) | color: lab(64.26 -62.35 56.77) | |
| LCH | lch(64.26 84.32 137.68) | color: lch(64.26 84.32 137.68) |
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)
#616349 — rgb(97, 99, 73)
Deuteranopia (Green-blind)
#594E51 — rgb(89, 78, 81)
Tritanopia (Blue-blind)
#29646A — rgb(41, 100, 106)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(122, 68%, 42%);
text
color: hsl(122, 68%, 42%);
border
border: 2px solid hsl(122, 68%, 42%);
gradient light
background: linear-gradient(to right, hsl(122, 68%, 62%), hsl(122, 68%, 42%));
gradient dark
background: linear-gradient(to right, hsl(122, 68%, 42%), hsl(122, 68%, 22%))
hex
background-color: #22B427;
tailwind
bg-[hsl(122,68%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(122, 68%, 42%, 0.4);
css variable
--color-primary: hsl(122, 68%, 42%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(122, 68%, 42%)?
HEX: #22B427 | RGB: rgb(34, 180, 39) | CMYK: 81%, 0%, 78%, 29% | HSV: 122°, 81%, 71%. Copy any format from the conversion table above.
What colors go well with #22B427?
The complementary color is HSL(302, 68%, 42%). 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, 68%, 42%) in CSS?
As HSL: color: hsl(122, 68%, 42%); — As HEX: color: #22B427; — As RGB: color: rgb(34, 180, 39); — Tailwind CSS: bg-[hsl(122,68%,42%)] — CSS variable: --color-primary: hsl(122, 68%, 42%);