#af02fa ≈ Vivid Violet
#af02fa is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 68.63% red, 0.78% green and 98.04% blue; printed in CMYK it uses 30% cyan, 99.2% magenta, 0% yellow and 1.96% black. Its hue angle is 281.85°, with 98.41% saturation and 49.41% lightness in HSL. It is a cool color, often associated with creativity, boldness and individuality. 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.99:1 (WCAG AA). The closest named color is Vivid Violet (#9f00ff), ΔE 2.77.
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.1606 |
Shades
#af02fa mixed progressively with black.
Tints
#af02fa mixed progressively with white.
Tones
#af02fa mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-af02fa {
color: #af02fa;
}
.bg-af02fa {
background-color: #af02fa;
color: #ffffff;
}
.border-af02fa {
border: 2px solid #af02fa;
}
:root {
--color-primary: #af02fa;
--color-primary-rgb: 175 2 250;
--color-primary-hsl: 282 98% 49%;
}
.gradient-af02fa {
background: linear-gradient(135deg, #af02fa, #fa02c9);
}
.shadow-af02fa {
box-shadow: 0 8px 24px rgb(175 2 250 / 0.35);
}
Vivid Violet
#af02fa rgb(175, 2, 250) hsl(282, 98%, 49%) Vivid Violet
#4dfa02 rgb(77, 250, 2) hsl(102, 98%, 49%) Harlequin
#faaf02 rgb(250, 175, 2) hsl(42, 98%, 49%) Marigold
#02faaf rgb(2, 250, 175) hsl(162, 98%, 49%) Medium Spring Green