#BA28FF

#ba28ff ≈ Electric Purple

  • magenta
  • Lightness: medium
  • Saturation: vivid
  • Cool

#ba28ff is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 72.94% red, 15.69% green and 100% blue; printed in CMYK it uses 27.06% cyan, 84.31% magenta, 0% yellow and 0% black. Its hue angle is 280.74°, with 100% saturation and 57.84% 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 4.84:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 1.7.

Description generated from the measured properties of this color.

Conversions of #ba28ff 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.1918

Readable text 4.34:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.84:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #797979 ≈ 0.003% of males
Achromatomaly #9763be ≈ 0.001% of males
Protanopia #0073ff ≈ 1.01% of males
Deuteranopia #007bfb ≈ 1.27% of males
Tritanopia #b0659a ≈ 0.0001% of males
Protanomaly #665eff ≈ 1.08% of males
Deuteranomaly #7564fd ≈ 4.63% of males
Tritanomaly #b453ca ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ba28ff {
  color: #ba28ff;
}
Background
.bg-ba28ff {
  background-color: #ba28ff;
  color: #000000;
}
Border
.border-ba28ff {
  border: 2px solid #ba28ff;
}
CSS variables
:root {
  --color-primary: #ba28ff;
  --color-primary-rgb: 186 40 255;
  --color-primary-hsl: 281 100% 58%;
}
Gradient
.gradient-ba28ff {
  background: linear-gradient(135deg, #ba28ff, #ff28d9);
}
Colored shadow
.shadow-ba28ff {
  box-shadow: 0 8px 24px rgb(186 40 255 / 0.35);
}

Electric Purple
#ba28ff  rgb(186, 40, 255)  hsl(281, 100%, 58%)  Electric Purple
#6dff28  rgb(109, 255, 40)  hsl(101, 100%, 58%)  Lawn Green
#ffba28  rgb(255, 186, 40)  hsl(41, 100%, 58%)  Amber
#28ffba  rgb(40, 255, 186)  hsl(161, 100%, 58%)  Medium Spring Green