#cd31ff ≈ Electric Purple
#cd31ff is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 80.39% red, 19.22% green and 100% blue; printed in CMYK it uses 19.61% cyan, 80.78% magenta, 0% yellow and 0% black. Its hue angle is 285.44°, with 100% saturation and 59.61% 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 5.48:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.84.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #cc33ff |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.224 |
Shades
#cd31ff mixed progressively with black.
Tints
#cd31ff mixed progressively with white.
Tones
#cd31ff mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-cd31ff {
color: #cd31ff;
}
.bg-cd31ff {
background-color: #cd31ff;
color: #000000;
}
.border-cd31ff {
border: 2px solid #cd31ff;
}
:root {
--color-primary: #cd31ff;
--color-primary-rgb: 205 49 255;
--color-primary-hsl: 285 100% 60%;
}
.gradient-cd31ff {
background: linear-gradient(135deg, #cd31ff, #ff31ca);
}
.shadow-cd31ff {
box-shadow: 0 8px 24px rgb(205 49 255 / 0.35);
}
Electric Purple
#cd31ff rgb(205, 49, 255) hsl(285, 100%, 60%) Electric Purple
#63ff31 rgb(99, 255, 49) hsl(105, 100%, 60%) Harlequin
#ffcd31 rgb(255, 205, 49) hsl(45, 100%, 60%) Sunglow
#31ffcd rgb(49, 255, 205) hsl(165, 100%, 60%) Aquamarine