#D40CD9

#d40cd9 ≈ Electric Purple

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

#d40cd9 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 85.1% blue; printed in CMYK it uses 2.3% cyan, 94.47% magenta, 0% yellow and 14.9% black. Its hue angle is 298.54°, with 89.52% saturation and 44.9% 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.85:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 6.66.

Description generated from the measured properties of this color.

Conversions of #d40cd9 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.1927

Readable text 4.33:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.85:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #797979 ≈ 0.003% of males
Achromatomaly #a660a8 ≈ 0.001% of males
Protanopia #006bde ≈ 1.01% of males
Deuteranopia #5381d5 ≈ 1.27% of males
Tritanopia #da4280 ≈ 0.0001% of males
Protanomaly #8754dc ≈ 1.08% of males
Deuteranomaly #9866d7 ≈ 4.63% of males
Tritanomaly #d834ab ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Electric Purple
#d40cd9  rgb(212, 12, 217)  hsl(299, 90%, 45%)  Electric Purple
#11d90c  rgb(17, 217, 12)  hsl(119, 90%, 45%)  Lime Green
#d9d40c  rgb(217, 212, 12)  hsl(59, 90%, 45%)  Citrine
#0cd9d4  rgb(12, 217, 212)  hsl(179, 90%, 45%)  Medium Turquoise