#a840fa ≈ Electric Purple
#a840fa is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 65.88% red, 25.1% green and 98.04% blue; printed in CMYK it uses 32.8% cyan, 74.4% magenta, 0% yellow and 1.96% black. Its hue angle is 273.55°, with 94.9% saturation and 61.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. Black text on this color reaches a contrast ratio of 4.78:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.32.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #9933ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.1889 |
Shades
#a840fa mixed progressively with black.
Tints
#a840fa mixed progressively with white.
Tones
#a840fa mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-a840fa {
color: #a840fa;
}
.bg-a840fa {
background-color: #a840fa;
color: #000000;
}
.border-a840fa {
border: 2px solid #a840fa;
}
:root {
--color-primary: #a840fa;
--color-primary-rgb: 168 64 250;
--color-primary-hsl: 274 95% 62%;
}
.gradient-a840fa {
background: linear-gradient(135deg, #a840fa, #fa40ef);
}
.shadow-a840fa {
box-shadow: 0 8px 24px rgb(168 64 250 / 0.35);
}
Electric Purple
#a840fa rgb(168, 64, 250) hsl(274, 95%, 62%) Electric Purple
#92fa40 rgb(146, 250, 64) hsl(94, 95%, 62%) Lawn Green
#faa840 rgb(250, 168, 64) hsl(34, 95%, 62%) Yellow Orange
#40faa8 rgb(64, 250, 168) hsl(154, 95%, 62%) Medium Spring Green