#D902FF

#d902ff ≈ Electric Purple

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

#d902ff is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 85.1% red, 0.78% green and 100% blue; printed in CMYK it uses 14.9% cyan, 99.22% magenta, 0% yellow and 0% black. Its hue angle is 290.99°, with 100% saturation and 50.39% 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 5.4:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.94.

Description generated from the measured properties of this color.

Conversions of #d902ff 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.2202

Readable text 3.89:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.4:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #818181 ≈ 0.003% of males
Achromatomaly #ab66c1 ≈ 0.001% of males
Protanopia #0075ff ≈ 1.01% of males
Deuteranopia #2e87fb ≈ 1.27% of males
Tritanopia #d95697 ≈ 0.0001% of males
Protanomaly #815cff ≈ 1.08% of males
Deuteranomaly #946afc ≈ 4.63% of males
Tritanomaly #d943c9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Electric Purple
#d902ff  rgb(217, 2, 255)  hsl(291, 100%, 50%)  Electric Purple
#28ff02  rgb(40, 255, 2)  hsl(111, 100%, 50%)  Neon Green
#ffd902  rgb(255, 217, 2)  hsl(51, 100%, 50%)  Gold
#02ffd9  rgb(2, 255, 217)  hsl(171, 100%, 50%)  Aquamarine