#840ecb ≈ Dark Violet
#840ecb is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 51.76% red, 5.49% green and 79.61% blue; printed in CMYK it uses 34.98% cyan, 93.1% magenta, 0% yellow and 20.39% black. Its hue angle is 277.46°, with 87.1% saturation and 42.55% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and call-to-action buttons. White text on this color reaches a contrast ratio of 7.23:1 (WCAG AAA). The closest named color is Dark Violet (#9400d3), ΔE 2.7.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #9900cc |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0953 |
Shades
#840ecb mixed progressively with black.
Tints
#840ecb mixed progressively with white.
Tones
#840ecb mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-840ecb {
color: #840ecb;
}
.bg-840ecb {
background-color: #840ecb;
color: #ffffff;
}
.border-840ecb {
border: 2px solid #840ecb;
}
:root {
--color-primary: #840ecb;
--color-primary-rgb: 132 14 203;
--color-primary-hsl: 277 87% 43%;
}
.gradient-840ecb {
background: linear-gradient(135deg, #840ecb, #cb0eb4);
}
.shadow-840ecb {
box-shadow: 0 8px 24px rgb(132 14 203 / 0.35);
}
Dark Violet
#840ecb rgb(132, 14, 203) hsl(277, 87%, 43%) Dark Violet
#55cb0e rgb(85, 203, 14) hsl(97, 87%, 43%) Lime Green
#cb840e rgb(203, 132, 14) hsl(37, 87%, 43%) Fulvous
#0ecb84 rgb(14, 203, 132) hsl(157, 87%, 43%) Emerald