HSL(120, 90%, 40%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(120,90%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(120, 90%, 40%) | color: hsl(120, 90%, 40%) | |
| HEX | #0AC20A | color: #0AC20A | |
| RGB | rgb(10, 194, 10) | color: rgb(10, 194, 10) | |
| CMYK | cmyk(95%, 0%, 95%, 24%) | — | |
| HSV | hsv(120, 95%, 76%) | — | |
| HWB | hwb(120 4% 24%) | color: hwb(120 4% 24%) | |
| OKLCH | oklch(0.7061 0.2377 142.53) | color: oklch(0.7061 0.2377 142.53) | |
| Lab | lab(68.51 -69.52 66.65) | color: lab(68.51 -69.52 66.65) | |
| LCH | lch(68.51 96.31 136.21) | color: lch(68.51 96.31 136.21) |
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)
#5A5B37 — rgb(90, 91, 55)
Deuteranopia (Green-blind)
#4F4141 — rgb(79, 65, 65)
Tritanopia (Blue-blind)
#135A61 — rgb(19, 90, 97)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(120, 90%, 40%);
text
color: hsl(120, 90%, 40%);
border
border: 2px solid hsl(120, 90%, 40%);
gradient light
background: linear-gradient(to right, hsl(120, 90%, 60%), hsl(120, 90%, 40%));
gradient dark
background: linear-gradient(to right, hsl(120, 90%, 40%), hsl(120, 90%, 20%))
hex
background-color: #0AC20A;
tailwind
bg-[hsl(120,90%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(120, 90%, 40%, 0.4);
css variable
--color-primary: hsl(120, 90%, 40%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(120, 90%, 40%)?
HEX: #0AC20A | RGB: rgb(10, 194, 10) | CMYK: 95%, 0%, 95%, 24% | HSV: 120°, 95%, 76%. Copy any format from the conversion table above.
What colors go well with #0AC20A?
The complementary color is HSL(300, 90%, 40%). For a triadic harmony, use hues 120°, 240°, and 0°. For analogous combinations, try hues 90° and 150°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(120, 90%, 40%) in CSS?
As HSL: color: hsl(120, 90%, 40%); — As HEX: color: #0AC20A; — As RGB: color: rgb(10, 194, 10); — Tailwind CSS: bg-[hsl(120,90%,40%)] — CSS variable: --color-primary: hsl(120, 90%, 40%);