#af51fa ≈ Electric Purple
#af51fa is a color from the violet family, with high lightness and strong saturation. In the RGB model it is made of 68.63% red, 31.76% green and 98.04% blue; printed in CMYK it uses 30% cyan, 67.6% magenta, 0% yellow and 1.96% black. Its hue angle is 273.37°, with 94.41% saturation and 64.9% 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 5.38:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 6.58.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #9966ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.219 |
Shades
#af51fa mixed progressively with black.
Tints
#af51fa mixed progressively with white.
Tones
#af51fa mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af51fa {
color: #af51fa;
}
.bg-af51fa {
background-color: #af51fa;
color: #000000;
}
.border-af51fa {
border: 2px solid #af51fa;
}
:root {
--color-primary: #af51fa;
--color-primary-rgb: 175 81 250;
--color-primary-hsl: 273 94% 65%;
}
.gradient-af51fa {
background: linear-gradient(135deg, #af51fa, #fa51f1);
}
.shadow-af51fa {
box-shadow: 0 8px 24px rgb(175 81 250 / 0.35);
}
Electric Purple
#af51fa rgb(175, 81, 250) hsl(273, 94%, 65%) Electric Purple
#9cfa51 rgb(156, 250, 81) hsl(93, 94%, 65%) Lawn Green
#faaf51 rgb(250, 175, 81) hsl(33, 94%, 65%) Yellow Orange
#51faaf rgb(81, 250, 175) hsl(153, 94%, 65%) Medium Spring Green