#ba42ef ≈ Electric Purple
#ba42ef is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 72.94% red, 25.88% green and 93.73% blue; printed in CMYK it uses 22.18% cyan, 72.38% magenta, 0% yellow and 6.27% black. Its hue angle is 281.62°, with 84.39% saturation and 59.8% 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. Black text on this color reaches a contrast ratio of 5.11:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.49.
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.2057 |
Shades
#ba42ef mixed progressively with black.
Tints
#ba42ef mixed progressively with white.
Tones
#ba42ef mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-ba42ef {
color: #ba42ef;
}
.bg-ba42ef {
background-color: #ba42ef;
color: #000000;
}
.border-ba42ef {
border: 2px solid #ba42ef;
}
:root {
--color-primary: #ba42ef;
--color-primary-rgb: 186 66 239;
--color-primary-hsl: 282 84% 60%;
}
.gradient-ba42ef {
background: linear-gradient(135deg, #ba42ef, #ef42cd);
}
.shadow-ba42ef {
box-shadow: 0 8px 24px rgb(186 66 239 / 0.35);
}
Electric Purple
#ba42ef rgb(186, 66, 239) hsl(282, 84%, 60%) Electric Purple
#77ef42 rgb(119, 239, 66) hsl(102, 84%, 60%) Lawn Green
#efba42 rgb(239, 186, 66) hsl(42, 84%, 60%) Meat Brown
#42efba rgb(66, 239, 186) hsl(162, 84%, 60%) Aquamarine