HSL(142, 56%, 21%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(142,56%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(142, 56%, 21%) | color: hsl(142, 56%, 21%) | |
| HEX | #18542E | color: #18542E | |
| RGB | rgb(24, 84, 46) | color: rgb(24, 84, 46) | |
| CMYK | cmyk(71%, 0%, 45%, 67%) | — | |
| HSV | hsv(142, 71%, 33%) | — | |
| HWB | hwb(142 10% 67%) | color: hwb(142 10% 67%) | |
| OKLCH | oklch(0.3969 0.0884 151.99) | color: oklch(0.3969 0.0884 151.99) | |
| Lab | lab(31.19 -28.9 16.75) | color: lab(31.19 -28.9 16.75) | |
| LCH | lch(31.19 33.4 149.9) | color: lch(31.19 33.4 149.9) |
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)
#323337 — rgb(50, 51, 55)
Deuteranopia (Green-blind)
#2F2A39 — rgb(47, 42, 57)
Tritanopia (Blue-blind)
#1B3E40 — rgb(27, 62, 64)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(142, 56%, 21%);
text
color: hsl(142, 56%, 21%);
border
border: 2px solid hsl(142, 56%, 21%);
gradient light
background: linear-gradient(to right, hsl(142, 56%, 41%), hsl(142, 56%, 21%));
gradient dark
background: linear-gradient(to right, hsl(142, 56%, 21%), hsl(142, 56%, 1%))
hex
background-color: #18542E;
tailwind
bg-[hsl(142,56%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(142, 56%, 21%, 0.4);
css variable
--color-primary: hsl(142, 56%, 21%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(142, 56%, 21%)?
HEX: #18542E | RGB: rgb(24, 84, 46) | CMYK: 71%, 0%, 45%, 67% | HSV: 142°, 71%, 33%. Copy any format from the conversion table above.
What colors go well with #18542E?
The complementary color is HSL(322, 56%, 21%). For a triadic harmony, use hues 142°, 262°, and 22°. For analogous combinations, try hues 112° and 172°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(142, 56%, 21%) in CSS?
As HSL: color: hsl(142, 56%, 21%); — As HEX: color: #18542E; — As RGB: color: rgb(24, 84, 46); — Tailwind CSS: bg-[hsl(142,56%,21%)] — CSS variable: --color-primary: hsl(142, 56%, 21%);