#BA28EC

#ba28ec ≈ Electric Purple

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

#ba28ec 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 92.55% blue; printed in CMYK it uses 21.19% cyan, 83.05% magenta, 0% yellow and 7.45% black. Its hue angle is 284.69°, with 83.76% saturation and 54.12% 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.6:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 2.39.

Description generated from the measured properties of this color.

Conversions of #ba28ec 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.1801

Readable text 4.56:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.6:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #767676 ≈ 0.003% of males
Achromatomaly #9660b2 ≈ 0.001% of males
Protanopia #006ef1 ≈ 1.01% of males
Deuteranopia #1579e8 ≈ 1.27% of males
Tritanopia #b55b8e ≈ 0.0001% of males
Protanomaly #6d5aef ≈ 1.08% of males
Deuteranomaly #7c62ea ≈ 4.63% of males
Tritanomaly #b74cbb ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ba28ec {
  color: #ba28ec;
}
Background
.bg-ba28ec {
  background-color: #ba28ec;
  color: #000000;
}
Border
.border-ba28ec {
  border: 2px solid #ba28ec;
}
CSS variables
:root {
  --color-primary: #ba28ec;
  --color-primary-rgb: 186 40 236;
  --color-primary-hsl: 285 84% 54%;
}
Gradient
.gradient-ba28ec {
  background: linear-gradient(135deg, #ba28ec, #ec28bc);
}
Colored shadow
.shadow-ba28ec {
  box-shadow: 0 8px 24px rgb(186 40 236 / 0.35);
}

Electric Purple
#ba28ec  rgb(186, 40, 236)  hsl(285, 84%, 54%)  Electric Purple
#5aec28  rgb(90, 236, 40)  hsl(105, 84%, 54%)  Neon Green
#ecba28  rgb(236, 186, 40)  hsl(45, 84%, 54%)  Meat Brown
#28ecba  rgb(40, 236, 186)  hsl(165, 84%, 54%)  Aquamarine