HSL(102, 50%, 42%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(102,50%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(102, 50%, 42%) | color: hsl(102, 50%, 42%) | |
| HEX | #56A136 | color: #56A136 | |
| RGB | rgb(86, 161, 54) | color: rgb(86, 161, 54) | |
| CMYK | cmyk(47%, 0%, 66%, 37%) | — | |
| HSV | hsv(102, 66%, 63%) | — | |
| HWB | hwb(102 21% 37%) | color: hwb(102 21% 37%) | |
| OKLCH | oklch(0.6377 0.1604 137.73) | color: oklch(0.6377 0.1604 137.73) | |
| Lab | lab(59.65 -42.99 46.89) | color: lab(59.65 -42.99 46.89) | |
| LCH | lch(59.65 63.61 132.52) | color: lch(59.65 63.61 132.52) |
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)
#767750 — rgb(118, 119, 80)
Deuteranopia (Green-blind)
#726D56 — rgb(114, 109, 86)
Tritanopia (Blue-blind)
#5A6469 — rgb(90, 100, 105)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(102, 50%, 42%);
text
color: hsl(102, 50%, 42%);
border
border: 2px solid hsl(102, 50%, 42%);
gradient light
background: linear-gradient(to right, hsl(102, 50%, 62%), hsl(102, 50%, 42%));
gradient dark
background: linear-gradient(to right, hsl(102, 50%, 42%), hsl(102, 50%, 22%))
hex
background-color: #56A136;
tailwind
bg-[hsl(102,50%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(102, 50%, 42%, 0.4);
css variable
--color-primary: hsl(102, 50%, 42%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(102, 50%, 42%)?
HEX: #56A136 | RGB: rgb(86, 161, 54) | CMYK: 47%, 0%, 66%, 37% | HSV: 102°, 66%, 63%. Copy any format from the conversion table above.
What colors go well with #56A136?
The complementary color is HSL(282, 50%, 42%). For a triadic harmony, use hues 102°, 222°, and 342°. For analogous combinations, try hues 72° and 132°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(102, 50%, 42%) in CSS?
As HSL: color: hsl(102, 50%, 42%); — As HEX: color: #56A136; — As RGB: color: rgb(86, 161, 54); — Tailwind CSS: bg-[hsl(102,50%,42%)] — CSS variable: --color-primary: hsl(102, 50%, 42%);