#C40DFD

#c40dfd ≈ Electric Purple

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

#c40dfd is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 76.86% red, 5.1% green and 99.22% blue; printed in CMYK it uses 22.53% cyan, 94.86% magenta, 0% yellow and 0.78% black. Its hue angle is 285.75°, with 98.36% saturation and 52.16% 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.82:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 1.2.

Description generated from the measured properties of this color.

Conversions of #c40dfd 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.1912

Readable text 4.35:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.82:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #797979 ≈ 0.003% of males
Achromatomaly #9d60bd ≈ 0.001% of males
Protanopia #0071ff ≈ 1.01% of males
Deuteranopia #007df9 ≈ 1.27% of males
Tritanopia #be5b96 ≈ 0.0001% of males
Protanomaly #6d59ff ≈ 1.08% of males
Deuteranomaly #7e63fa ≈ 4.63% of males
Tritanomaly #c148c8 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c40dfd {
  color: #c40dfd;
}
Background
.bg-c40dfd {
  background-color: #c40dfd;
  color: #000000;
}
Border
.border-c40dfd {
  border: 2px solid #c40dfd;
}
CSS variables
:root {
  --color-primary: #c40dfd;
  --color-primary-rgb: 196 13 253;
  --color-primary-hsl: 286 98% 52%;
}
Gradient
.gradient-c40dfd {
  background: linear-gradient(135deg, #c40dfd, #fd0dbe);
}
Colored shadow
.shadow-c40dfd {
  box-shadow: 0 8px 24px rgb(196 13 253 / 0.35);
}

Electric Purple
#c40dfd  rgb(196, 13, 253)  hsl(286, 98%, 52%)  Electric Purple
#46fd0d  rgb(70, 253, 13)  hsl(106, 98%, 52%)  Harlequin
#fdc40d  rgb(253, 196, 13)  hsl(46, 98%, 52%)  Mikado Yellow
#0dfdc4  rgb(13, 253, 196)  hsl(166, 98%, 52%)  Aquamarine