#940efb ≈ Electric Violet
#940efb is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 58.04% red, 5.49% green and 98.43% blue; printed in CMYK it uses 41.04% cyan, 94.42% magenta, 0% yellow and 1.57% black. Its hue angle is 273.92°, with 96.73% saturation and 51.96% 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 5.65:1 (WCAG AA). The closest named color is Electric Violet (#8f00ff), ΔE 1.05.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #9900ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1358 |
Shades
#940efb mixed progressively with black.
Tints
#940efb mixed progressively with white.
Tones
#940efb mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-940efb {
color: #940efb;
}
.bg-940efb {
background-color: #940efb;
color: #ffffff;
}
.border-940efb {
border: 2px solid #940efb;
}
:root {
--color-primary: #940efb;
--color-primary-rgb: 148 14 251;
--color-primary-hsl: 274 97% 52%;
}
.gradient-940efb {
background: linear-gradient(135deg, #940efb, #fb0eec);
}
.shadow-940efb {
box-shadow: 0 8px 24px rgb(148 14 251 / 0.35);
}
Electric Violet
#940efb rgb(148, 14, 251) hsl(274, 97%, 52%) Electric Violet
#75fb0e rgb(117, 251, 14) hsl(94, 97%, 52%) Lawn Green
#fb940e rgb(251, 148, 14) hsl(34, 97%, 52%) Carrot Orange
#0efb94 rgb(14, 251, 148) hsl(154, 97%, 52%) Medium Spring Green