#c402ff ≈ Electric Purple
#c402ff is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 76.86% red, 0.78% green and 100% blue; printed in CMYK it uses 23.14% cyan, 99.22% magenta, 0% yellow and 0% black. Its hue angle is 286.01°, with 100% saturation and 50.39% lightness in HSL. It sits between warm and cool, and is often associated with creativity, boldness and individuality. 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 0.98.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc00ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.19 |
Shades
#c402ff mixed progressively with black.
Tints
#c402ff mixed progressively with white.
Tones
#c402ff mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-c402ff {
color: #c402ff;
}
.bg-c402ff {
background-color: #c402ff;
color: #000000;
}
.border-c402ff {
border: 2px solid #c402ff;
}
:root {
--color-primary: #c402ff;
--color-primary-rgb: 196 2 255;
--color-primary-hsl: 286 100% 50%;
}
.gradient-c402ff {
background: linear-gradient(135deg, #c402ff, #ff02bb);
}
.shadow-c402ff {
box-shadow: 0 8px 24px rgb(196 2 255 / 0.35);
}
Electric Purple
#c402ff rgb(196, 2, 255) hsl(286, 100%, 50%) Electric Purple
#3dff02 rgb(61, 255, 2) hsl(106, 100%, 50%) Harlequin
#ffc402 rgb(255, 196, 2) hsl(46, 100%, 50%) Mikado Yellow
#02ffc4 rgb(2, 255, 196) hsl(166, 100%, 50%) Aquamarine