#af40ef ≈ Electric Purple
#af40ef is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 68.63% red, 25.1% green and 93.73% blue; printed in CMYK it uses 26.78% cyan, 73.22% magenta, 0% yellow and 6.27% black. Its hue angle is 278.06°, with 84.54% saturation and 59.41% 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.8:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 3.93.
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.1901 |
Shades
#af40ef mixed progressively with black.
Tints
#af40ef mixed progressively with white.
Tones
#af40ef mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af40ef {
color: #af40ef;
}
.bg-af40ef {
background-color: #af40ef;
color: #000000;
}
.border-af40ef {
border: 2px solid #af40ef;
}
:root {
--color-primary: #af40ef;
--color-primary-rgb: 175 64 239;
--color-primary-hsl: 278 85% 59%;
}
.gradient-af40ef {
background: linear-gradient(135deg, #af40ef, #ef40d7);
}
.shadow-af40ef {
box-shadow: 0 8px 24px rgb(175 64 239 / 0.35);
}
Electric Purple
#af40ef rgb(175, 64, 239) hsl(278, 85%, 59%) Electric Purple
#80ef40 rgb(128, 239, 64) hsl(98, 85%, 59%) Lawn Green
#efaf40 rgb(239, 175, 64) hsl(38, 85%, 59%) Pastel Orange
#40efaf rgb(64, 239, 175) hsl(158, 85%, 59%) Medium Spring Green