HSL(142, 41%, 28%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(142,41%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(142, 41%, 28%) | color: hsl(142, 41%, 28%) | |
| HEX | #2A6540 | color: #2A6540 | |
| RGB | rgb(42, 101, 64) | color: rgb(42, 101, 64) | |
| CMYK | cmyk(58%, 0%, 37%, 60%) | — | |
| HSV | hsv(142, 58%, 40%) | — | |
| HWB | hwb(142 17% 60%) | color: hwb(142 17% 60%) | |
| OKLCH | oklch(0.4569 0.0866 153.62) | color: oklch(0.4569 0.0866 153.62) | |
| Lab | lab(38.14 -28.56 15.32) | color: lab(38.14 -28.56 15.32) | |
| LCH | lch(38.14 32.41 151.79) | color: lch(38.14 32.41 151.79) |
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)
#444449 — rgb(68, 68, 73)
Deuteranopia (Green-blind)
#403C4B — rgb(64, 60, 75)
Tritanopia (Blue-blind)
#2D5052 — rgb(45, 80, 82)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(142, 41%, 28%);
text
color: hsl(142, 41%, 28%);
border
border: 2px solid hsl(142, 41%, 28%);
gradient light
background: linear-gradient(to right, hsl(142, 41%, 48%), hsl(142, 41%, 28%));
gradient dark
background: linear-gradient(to right, hsl(142, 41%, 28%), hsl(142, 41%, 8%))
hex
background-color: #2A6540;
tailwind
bg-[hsl(142,41%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(142, 41%, 28%, 0.4);
css variable
--color-primary: hsl(142, 41%, 28%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(142, 41%, 28%)?
HEX: #2A6540 | RGB: rgb(42, 101, 64) | CMYK: 58%, 0%, 37%, 60% | HSV: 142°, 58%, 40%. Copy any format from the conversion table above.
What colors go well with #2A6540?
The complementary color is HSL(322, 41%, 28%). 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, 41%, 28%) in CSS?
As HSL: color: hsl(142, 41%, 28%); — As HEX: color: #2A6540; — As RGB: color: rgb(42, 101, 64); — Tailwind CSS: bg-[hsl(142,41%,28%)] — CSS variable: --color-primary: hsl(142, 41%, 28%);