#940cfb ≈ Electric Violet
#940cfb is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 58.04% red, 4.71% green and 98.43% blue; printed in CMYK it uses 41.04% cyan, 95.22% magenta, 0% yellow and 1.57% black. Its hue angle is 274.14°, with 96.76% saturation and 51.57% 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.67:1 (WCAG AA). The closest named color is Electric Violet (#8f00ff), ΔE 1.
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.1352 |
Shades
#940cfb mixed progressively with black.
Tints
#940cfb mixed progressively with white.
Tones
#940cfb mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-940cfb {
color: #940cfb;
}
.bg-940cfb {
background-color: #940cfb;
color: #ffffff;
}
.border-940cfb {
border: 2px solid #940cfb;
}
:root {
--color-primary: #940cfb;
--color-primary-rgb: 148 12 251;
--color-primary-hsl: 274 97% 52%;
}
.gradient-940cfb {
background: linear-gradient(135deg, #940cfb, #fb0ceb);
}
.shadow-940cfb {
box-shadow: 0 8px 24px rgb(148 12 251 / 0.35);
}
Electric Violet
#940cfb rgb(148, 12, 251) hsl(274, 97%, 52%) Electric Violet
#73fb0c rgb(115, 251, 12) hsl(94, 97%, 52%) Lawn Green
#fb940c rgb(251, 148, 12) hsl(34, 97%, 52%) Carrot Orange
#0cfb94 rgb(12, 251, 148) hsl(154, 97%, 52%) Medium Spring Green