HSL(138, 50%, 42%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(138,50%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(138, 50%, 42%) | color: hsl(138, 50%, 42%) | |
| HEX | #36A156 | color: #36A156 | |
| RGB | rgb(54, 161, 86) | color: rgb(54, 161, 86) | |
| CMYK | cmyk(66%, 0%, 47%, 37%) | — | |
| HSV | hsv(138, 66%, 63%) | — | |
| HWB | hwb(138 21% 37%) | color: hwb(138 21% 37%) | |
| OKLCH | oklch(0.6299 0.1473 149.76) | color: oklch(0.6299 0.1473 149.76) | |
| Lab | lab(58.92 -47.18 30.29) | color: lab(58.92 -47.18 30.29) | |
| LCH | lch(58.92 56.07 147.3) | color: lch(58.92 56.07 147.3) |
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)
#646568 — rgb(100, 101, 104)
Deuteranopia (Green-blind)
#5E566D — rgb(94, 86, 109)
Tritanopia (Blue-blind)
#3B767A — rgb(59, 118, 122)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(138, 50%, 42%);
text
color: hsl(138, 50%, 42%);
border
border: 2px solid hsl(138, 50%, 42%);
gradient light
background: linear-gradient(to right, hsl(138, 50%, 62%), hsl(138, 50%, 42%));
gradient dark
background: linear-gradient(to right, hsl(138, 50%, 42%), hsl(138, 50%, 22%))
hex
background-color: #36A156;
tailwind
bg-[hsl(138,50%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(138, 50%, 42%, 0.4);
css variable
--color-primary: hsl(138, 50%, 42%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(138, 50%, 42%)?
HEX: #36A156 | RGB: rgb(54, 161, 86) | CMYK: 66%, 0%, 47%, 37% | HSV: 138°, 66%, 63%. Copy any format from the conversion table above.
What colors go well with #36A156?
The complementary color is HSL(318, 50%, 42%). For a triadic harmony, use hues 138°, 258°, and 18°. For analogous combinations, try hues 108° and 168°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(138, 50%, 42%) in CSS?
As HSL: color: hsl(138, 50%, 42%); — As HEX: color: #36A156; — As RGB: color: rgb(54, 161, 86); — Tailwind CSS: bg-[hsl(138,50%,42%)] — CSS variable: --color-primary: hsl(138, 50%, 42%);