HSL(142, 63%, 31%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(142,63%,31%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(142, 63%, 31%) | color: hsl(142, 63%, 31%) | |
| HEX | #1D8142 | color: #1D8142 | |
| RGB | rgb(29, 129, 66) | color: rgb(29, 129, 66) | |
| CMYK | cmyk(78%, 0%, 49%, 49%) | — | |
| HSV | hsv(142, 78%, 51%) | — | |
| HWB | hwb(142 11% 49%) | color: hwb(142 11% 49%) | |
| OKLCH | oklch(0.5325 0.1315 150.8) | color: oklch(0.5325 0.1315 150.8) | |
| Lab | lab(47.44 -42.7 26.25) | color: lab(47.44 -42.7 26.25) | |
| LCH | lch(47.44 50.12 148.42) | color: lch(47.44 50.12 148.42) |
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)
#484951 — rgb(72, 73, 81)
Deuteranopia (Green-blind)
#433B55 — rgb(67, 59, 85)
Tritanopia (Blue-blind)
#225D60 — rgb(34, 93, 96)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(142, 63%, 31%);
text
color: hsl(142, 63%, 31%);
border
border: 2px solid hsl(142, 63%, 31%);
gradient light
background: linear-gradient(to right, hsl(142, 63%, 51%), hsl(142, 63%, 31%));
gradient dark
background: linear-gradient(to right, hsl(142, 63%, 31%), hsl(142, 63%, 11%))
hex
background-color: #1D8142;
tailwind
bg-[hsl(142,63%,31%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(142, 63%, 31%, 0.4);
css variable
--color-primary: hsl(142, 63%, 31%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(142, 63%, 31%)?
HEX: #1D8142 | RGB: rgb(29, 129, 66) | CMYK: 78%, 0%, 49%, 49% | HSV: 142°, 78%, 51%. Copy any format from the conversion table above.
What colors go well with #1D8142?
The complementary color is HSL(322, 63%, 31%). 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, 63%, 31%) in CSS?
As HSL: color: hsl(142, 63%, 31%); — As HEX: color: #1D8142; — As RGB: color: rgb(29, 129, 66); — Tailwind CSS: bg-[hsl(142,63%,31%)] — CSS variable: --color-primary: hsl(142, 63%, 31%);