#D302EC

#d302ec ≈ Electric Purple

  • magenta
  • Lightness: medium
  • Saturation: vivid
  • Balanced

#d302ec is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 82.75% red, 0.78% green and 92.55% blue; printed in CMYK it uses 10.59% cyan, 99.15% magenta, 0% yellow and 7.45% black. Its hue angle is 293.59°, with 98.32% saturation and 46.67% 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 4.99:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.53.

Description generated from the measured properties of this color.

Conversions of #d302ec into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#cc00ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1995

Readable text 4.21:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.99:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7b7b7b ≈ 0.003% of males
Achromatomaly #a661b4 ≈ 0.001% of males
Protanopia #006ff1 ≈ 1.01% of males
Deuteranopia #3e82e8 ≈ 1.27% of males
Tritanopia #d54d8b ≈ 0.0001% of males
Protanomaly #8057ef ≈ 1.08% of males
Deuteranomaly #9366e9 ≈ 4.63% of males
Tritanomaly #d43bba ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d302ec {
  color: #d302ec;
}
Background
.bg-d302ec {
  background-color: #d302ec;
  color: #000000;
}
Border
.border-d302ec {
  border: 2px solid #d302ec;
}
CSS variables
:root {
  --color-primary: #d302ec;
  --color-primary-rgb: 211 2 236;
  --color-primary-hsl: 294 98% 47%;
}
Gradient
.gradient-d302ec {
  background: linear-gradient(135deg, #d302ec, #ec0290);
}
Colored shadow
.shadow-d302ec {
  box-shadow: 0 8px 24px rgb(211 2 236 / 0.35);
}

Electric Purple
#d302ec  rgb(211, 2, 236)  hsl(294, 98%, 47%)  Electric Purple
#1bec02  rgb(27, 236, 2)  hsl(114, 98%, 47%)  Lime
#ecd302  rgb(236, 211, 2)  hsl(54, 98%, 47%)  Citrine
#02ecd3  rgb(2, 236, 211)  hsl(174, 98%, 47%)  Turquoise