#C40CD2

#c40cd2 ≈ Electric Purple

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

#c40cd2 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 76.86% red, 4.71% green and 82.35% blue; printed in CMYK it uses 6.67% cyan, 94.29% magenta, 0% yellow and 17.65% black. Its hue angle is 295.76°, with 89.19% saturation and 43.53% 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. White text on this color reaches a contrast ratio of 4.85:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 6.16.

Description generated from the measured properties of this color.

Conversions of #c40cd2 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.1665

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

Achromatopsia #717171 ≈ 0.003% of males
Achromatomaly #995aa1 ≈ 0.001% of males
Protanopia #0065d6 ≈ 1.01% of males
Deuteranopia #4578ce ≈ 1.27% of males
Tritanopia #c8427c ≈ 0.0001% of males
Protanomaly #7a50d5 ≈ 1.08% of males
Deuteranomaly #8b5fd0 ≈ 4.63% of males
Tritanomaly #c634a5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c40cd2 {
  color: #c40cd2;
}
Background
.bg-c40cd2 {
  background-color: #c40cd2;
  color: #ffffff;
}
Border
.border-c40cd2 {
  border: 2px solid #c40cd2;
}
CSS variables
:root {
  --color-primary: #c40cd2;
  --color-primary-rgb: 196 12 210;
  --color-primary-hsl: 296 89% 44%;
}
Gradient
.gradient-c40cd2 {
  background: linear-gradient(135deg, #c40cd2, #d20c7d);
}
Colored shadow
.shadow-c40cd2 {
  box-shadow: 0 8px 24px rgb(196 12 210 / 0.35);
}

Electric Purple
#c40cd2  rgb(196, 12, 210)  hsl(296, 89%, 44%)  Electric Purple
#1ad20c  rgb(26, 210, 12)  hsl(116, 89%, 44%)  Lime Green
#d2c40c  rgb(210, 196, 12)  hsl(56, 89%, 44%)  Citrine
#0cd2c4  rgb(12, 210, 196)  hsl(176, 89%, 44%)  Turquoise