HSL(148, 50%, 33%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(148,50%,33%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(148, 50%, 33%) | color: hsl(148, 50%, 33%) | |
| HEX | #2A7E51 | color: #2A7E51 | |
| RGB | rgb(42, 126, 81) | color: rgb(42, 126, 81) | |
| CMYK | cmyk(67%, 0%, 36%, 51%) | — | |
| HSV | hsv(148, 67%, 49%) | — | |
| HWB | hwb(148 16% 51%) | color: hwb(148 16% 51%) | |
| OKLCH | oklch(0.5305 0.1075 156.09) | color: oklch(0.5305 0.1075 156.09) | |
| Lab | lab(46.98 -36.23 17.31) | color: lab(46.98 -36.23 17.31) | |
| LCH | lch(46.98 40.15 154.46) | color: lch(46.98 40.15 154.46) |
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)
#4E4F5C — rgb(78, 79, 92)
Deuteranopia (Green-blind)
#4A435F — rgb(74, 67, 95)
Tritanopia (Blue-blind)
#2E6466 — rgb(46, 100, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(148, 50%, 33%);
text
color: hsl(148, 50%, 33%);
border
border: 2px solid hsl(148, 50%, 33%);
gradient light
background: linear-gradient(to right, hsl(148, 50%, 53%), hsl(148, 50%, 33%));
gradient dark
background: linear-gradient(to right, hsl(148, 50%, 33%), hsl(148, 50%, 13%))
hex
background-color: #2A7E51;
tailwind
bg-[hsl(148,50%,33%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(148, 50%, 33%, 0.4);
css variable
--color-primary: hsl(148, 50%, 33%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(148, 50%, 33%)?
HEX: #2A7E51 | RGB: rgb(42, 126, 81) | CMYK: 67%, 0%, 36%, 51% | HSV: 148°, 67%, 49%. Copy any format from the conversion table above.
What colors go well with #2A7E51?
The complementary color is HSL(328, 50%, 33%). For a triadic harmony, use hues 148°, 268°, and 28°. For analogous combinations, try hues 118° and 178°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(148, 50%, 33%) in CSS?
As HSL: color: hsl(148, 50%, 33%); — As HEX: color: #2A7E51; — As RGB: color: rgb(42, 126, 81); — Tailwind CSS: bg-[hsl(148,50%,33%)] — CSS variable: --color-primary: hsl(148, 50%, 33%);