#BA40ED

#ba40ed ≈ Electric Purple

  • magenta
  • Lightness: medium
  • Saturation: strong
  • Cool

#ba40ed 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.1% green and 92.94% blue; printed in CMYK it uses 21.52% cyan, 73% magenta, 0% yellow and 7.06% black. Its hue angle is 282.31°, with 82.78% saturation and 59.02% 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.04:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.28.

Description generated from the measured properties of this color.

Conversions of #ba40ed into other color spaces
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 luminance0.2022

Readable text 4.16:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.04:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7c7c7c ≈ 0.003% of males
Achromatomaly #9969b5 ≈ 0.001% of males
Protanopia #0076f2 ≈ 1.01% of males
Deuteranopia #327fe9 ≈ 1.27% of males
Tritanopia #b56694 ≈ 0.0001% of males
Protanomaly #7265f0 ≈ 1.08% of males
Deuteranomaly #806beb ≈ 4.63% of males
Tritanomaly #b759be ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ba40ed {
  color: #ba40ed;
}
Background
.bg-ba40ed {
  background-color: #ba40ed;
  color: #000000;
}
Border
.border-ba40ed {
  border: 2px solid #ba40ed;
}
CSS variables
:root {
  --color-primary: #ba40ed;
  --color-primary-rgb: 186 64 237;
  --color-primary-hsl: 282 83% 59%;
}
Gradient
.gradient-ba40ed {
  background: linear-gradient(135deg, #ba40ed, #ed40ca);
}
Colored shadow
.shadow-ba40ed {
  box-shadow: 0 8px 24px rgb(186 64 237 / 0.35);
}

Electric Purple
#ba40ed  rgb(186, 64, 237)  hsl(282, 83%, 59%)  Electric Purple
#73ed40  rgb(115, 237, 64)  hsl(102, 83%, 59%)  Lawn Green
#edba40  rgb(237, 186, 64)  hsl(42, 83%, 59%)  Meat Brown
#40edba  rgb(64, 237, 186)  hsl(162, 83%, 59%)  Aquamarine