#C40CD7

#c40cd7 ≈ Electric Purple

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

#c40cd7 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 84.31% blue; printed in CMYK it uses 8.84% cyan, 94.42% magenta, 0% yellow and 15.69% black. Its hue angle is 294.38°, with 89.43% saturation and 44.51% 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.79:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 5.44.

Description generated from the measured properties of this color.

Conversions of #c40cd7 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.1691

Readable text 4.79:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.38:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #727272 ≈ 0.003% of males
Achromatomaly #9a5aa4 ≈ 0.001% of males
Protanopia #0066dc ≈ 1.01% of males
Deuteranopia #4078d3 ≈ 1.27% of males
Tritanopia #c7467f ≈ 0.0001% of males
Protanomaly #7951da ≈ 1.08% of males
Deuteranomaly #895fd5 ≈ 4.63% of males
Tritanomaly #c637a9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Electric Purple
#c40cd7  rgb(196, 12, 215)  hsl(294, 89%, 45%)  Electric Purple
#1fd70c  rgb(31, 215, 12)  hsl(114, 89%, 45%)  Lime Green
#d7c40c  rgb(215, 196, 12)  hsl(54, 89%, 45%)  Citrine
#0cd7c4  rgb(12, 215, 196)  hsl(174, 89%, 45%)  Turquoise