HSL(128, 50%, 50%)
Green — Green color
Adjust Color
Color Information
Color Name
Green
Color Family
Green
Warm / Cool
🔵 Cool
Temperature
5000K
CSS Class
bg-[hsl(128,50%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(128, 50%, 50%) | color: hsl(128, 50%, 50%) | |
| HEX | #40BF51 | color: #40BF51 | |
| RGB | rgb(64, 191, 81) | color: rgb(64, 191, 81) | |
| CMYK | cmyk(66%, 0%, 58%, 25%) | — | |
| HSV | hsv(128, 66%, 75%) | — | |
| HWB | hwb(128 26% 25%) | color: hwb(128 26% 25%) | |
| OKLCH | oklch(0.7112 0.1873 145.45) | color: oklch(0.7112 0.1873 145.45) | |
| Lab | lab(68.71 -57.07 44.8) | color: lab(68.71 -57.07 44.8) | |
| LCH | lch(68.71 72.55 141.87) | color: lch(68.71 72.55 141.87) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#77786C — rgb(119, 120, 108)
Deuteranopia (Green-blind)
#706672 — rgb(112, 102, 114)
Tritanopia (Blue-blind)
#468185 — rgb(70, 129, 133)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(128, 50%, 50%);
text
color: hsl(128, 50%, 50%);
border
border: 2px solid hsl(128, 50%, 50%);
gradient light
background: linear-gradient(to right, hsl(128, 50%, 70%), hsl(128, 50%, 50%));
gradient dark
background: linear-gradient(to right, hsl(128, 50%, 50%), hsl(128, 50%, 30%))
hex
background-color: #40BF51;
tailwind
bg-[hsl(128,50%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(128, 50%, 50%, 0.4);
css variable
--color-primary: hsl(128, 50%, 50%);
Related Colors
Use Cases for Green
Frequently Asked Questions
What are all the color codes for HSL(128, 50%, 50%)?
HEX: #40BF51 | RGB: rgb(64, 191, 81) | CMYK: 66%, 0%, 58%, 25% | HSV: 128°, 66%, 75%. Copy any format from the conversion table above.
What colors go well with #40BF51?
The complementary color is HSL(308, 50%, 50%). For a triadic harmony, use hues 128°, 248°, and 8°. For analogous combinations, try hues 98° and 158°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(128, 50%, 50%) in CSS?
As HSL: color: hsl(128, 50%, 50%); — As HEX: color: #40BF51; — As RGB: color: rgb(64, 191, 81); — Tailwind CSS: bg-[hsl(128,50%,50%)] — CSS variable: --color-primary: hsl(128, 50%, 50%);