#af28fa ≈ Electric Purple
#af28fa is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 68.63% red, 15.69% green and 98.04% blue; printed in CMYK it uses 30% cyan, 84% magenta, 0% yellow and 1.96% black. Its hue angle is 278.57°, with 95.45% saturation and 56.86% 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 4.66:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 2.33.
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.1753 |
Shades
#af28fa mixed progressively with black.
Tints
#af28fa mixed progressively with white.
Tones
#af28fa mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af28fa {
color: #af28fa;
}
.bg-af28fa {
background-color: #af28fa;
color: #ffffff;
}
.border-af28fa {
border: 2px solid #af28fa;
}
:root {
--color-primary: #af28fa;
--color-primary-rgb: 175 40 250;
--color-primary-hsl: 279 95% 57%;
}
.gradient-af28fa {
background: linear-gradient(135deg, #af28fa, #fa28dc);
}
.shadow-af28fa {
box-shadow: 0 8px 24px rgb(175 40 250 / 0.35);
}
Electric Purple
#af28fa rgb(175, 40, 250) hsl(279, 95%, 57%) Electric Purple
#73fa28 rgb(115, 250, 40) hsl(99, 95%, 57%) Lawn Green
#faaf28 rgb(250, 175, 40) hsl(39, 95%, 57%) Pastel Orange
#28faaf rgb(40, 250, 175) hsl(159, 95%, 57%) Medium Spring Green