#c40afa ≈ Electric Purple
#c40afa is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 76.86% red, 3.92% green and 98.04% blue; printed in CMYK it uses 21.6% cyan, 96% magenta, 0% yellow and 1.96% black. Its hue angle is 286.5°, with 96% saturation and 50.98% 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.77:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 1.22.
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.1885 |
Shades
#c40afa mixed progressively with black.
Tints
#c40afa mixed progressively with white.
Tones
#c40afa mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-c40afa {
color: #c40afa;
}
.bg-c40afa {
background-color: #c40afa;
color: #000000;
}
.border-c40afa {
border: 2px solid #c40afa;
}
:root {
--color-primary: #c40afa;
--color-primary-rgb: 196 10 250;
--color-primary-hsl: 287 96% 51%;
}
.gradient-c40afa {
background: linear-gradient(135deg, #c40afa, #fa0ab8);
}
.shadow-c40afa {
box-shadow: 0 8px 24px rgb(196 10 250 / 0.35);
}
Electric Purple
#c40afa rgb(196, 10, 250) hsl(287, 96%, 51%) Electric Purple
#40fa0a rgb(64, 250, 10) hsl(107, 96%, 51%) Harlequin
#fac40a rgb(250, 196, 10) hsl(47, 96%, 51%) Golden Poppy
#0afac4 rgb(10, 250, 196) hsl(167, 96%, 51%) Aquamarine