#D40CD8

#d40cd8 ≈ Electric Purple

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

#d40cd8 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 83.14% red, 4.71% green and 84.71% blue; printed in CMYK it uses 1.85% cyan, 94.44% magenta, 0% yellow and 15.29% black. Its hue angle is 298.82°, with 89.47% saturation and 44.71% 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.84:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 6.78.

Description generated from the measured properties of this color.

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

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 #a560a8 ≈ 0.001% of males
Protanopia #006bdd ≈ 1.01% of males
Deuteranopia #5481d4 ≈ 1.27% of males
Tritanopia #da4180 ≈ 0.0001% of males
Protanomaly #8754db ≈ 1.08% of males
Deuteranomaly #9966d6 ≈ 4.63% of males
Tritanomaly #d833aa ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d40cd8 {
  color: #d40cd8;
}
Background
.bg-d40cd8 {
  background-color: #d40cd8;
  color: #000000;
}
Border
.border-d40cd8 {
  border: 2px solid #d40cd8;
}
CSS variables
:root {
  --color-primary: #d40cd8;
  --color-primary-rgb: 212 12 216;
  --color-primary-hsl: 299 89% 45%;
}
Gradient
.gradient-d40cd8 {
  background: linear-gradient(135deg, #d40cd8, #d80c76);
}
Colored shadow
.shadow-d40cd8 {
  box-shadow: 0 8px 24px rgb(212 12 216 / 0.35);
}

Electric Purple
#d40cd8  rgb(212, 12, 216)  hsl(299, 89%, 45%)  Electric Purple
#10d80c  rgb(16, 216, 12)  hsl(119, 89%, 45%)  Lime Green
#d8d40c  rgb(216, 212, 12)  hsl(59, 89%, 45%)  Citrine
#0cd8d4  rgb(12, 216, 212)  hsl(179, 89%, 45%)  Medium Turquoise