HSL(142, 56%, 24%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(142,56%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(142, 56%, 24%) | color: hsl(142, 56%, 24%) | |
| HEX | #1B5F34 | color: #1B5F34 | |
| RGB | rgb(27, 95, 52) | color: rgb(27, 95, 52) | |
| CMYK | cmyk(72%, 0%, 45%, 63%) | — | |
| HSV | hsv(142, 72%, 37%) | — | |
| HWB | hwb(142 10% 63%) | color: hwb(142 10% 63%) | |
| OKLCH | oklch(0.4316 0.0975 151.86) | color: oklch(0.4316 0.0975 151.86) | |
| Lab | lab(35.33 -31.88 18.6) | color: lab(35.33 -31.88 18.6) | |
| LCH | lch(35.33 36.91 149.74) | color: lch(35.33 36.91 149.74) |
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)
#38393E — rgb(56, 57, 62)
Deuteranopia (Green-blind)
#352F41 — rgb(53, 47, 65)
Tritanopia (Blue-blind)
#1E4748 — rgb(30, 71, 72)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(142, 56%, 24%);
text
color: hsl(142, 56%, 24%);
border
border: 2px solid hsl(142, 56%, 24%);
gradient light
background: linear-gradient(to right, hsl(142, 56%, 44%), hsl(142, 56%, 24%));
gradient dark
background: linear-gradient(to right, hsl(142, 56%, 24%), hsl(142, 56%, 4%))
hex
background-color: #1B5F34;
tailwind
bg-[hsl(142,56%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(142, 56%, 24%, 0.4);
css variable
--color-primary: hsl(142, 56%, 24%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(142, 56%, 24%)?
HEX: #1B5F34 | RGB: rgb(27, 95, 52) | CMYK: 72%, 0%, 45%, 63% | HSV: 142°, 72%, 37%. Copy any format from the conversion table above.
What colors go well with #1B5F34?
The complementary color is HSL(322, 56%, 24%). 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%, 24%) in CSS?
As HSL: color: hsl(142, 56%, 24%); — As HEX: color: #1B5F34; — As RGB: color: rgb(27, 95, 52); — Tailwind CSS: bg-[hsl(142,56%,24%)] — CSS variable: --color-primary: hsl(142, 56%, 24%);