#D40EF2

#d40ef2 ≈ Electric Purple

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

#d40ef2 is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 83.14% red, 5.49% green and 94.9% blue; printed in CMYK it uses 12.4% cyan, 94.21% magenta, 0% yellow and 5.1% black. Its hue angle is 292.11°, with 89.76% saturation and 50.2% 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 5.14:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.49.

Description generated from the measured properties of this color.

Conversions of #d40ef2 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.2072

Readable text 4.08:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.14:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7e7e7e ≈ 0.003% of males
Achromatomaly #a763b8 ≈ 0.001% of males
Protanopia #0072f7 ≈ 1.01% of males
Deuteranopia #3b84ee ≈ 1.27% of males
Tritanopia #d5528f ≈ 0.0001% of males
Protanomaly #805af5 ≈ 1.08% of males
Deuteranomaly #9268ef ≈ 4.63% of males
Tritanomaly #d540bf ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d40ef2 {
  color: #d40ef2;
}
Background
.bg-d40ef2 {
  background-color: #d40ef2;
  color: #000000;
}
Border
.border-d40ef2 {
  border: 2px solid #d40ef2;
}
CSS variables
:root {
  --color-primary: #d40ef2;
  --color-primary-rgb: 212 14 242;
  --color-primary-hsl: 292 90% 50%;
}
Gradient
.gradient-d40ef2 {
  background: linear-gradient(135deg, #d40ef2, #f20e9e);
}
Colored shadow
.shadow-d40ef2 {
  box-shadow: 0 8px 24px rgb(212 14 242 / 0.35);
}

Electric Purple
#d40ef2  rgb(212, 14, 242)  hsl(292, 90%, 50%)  Electric Purple
#2cf20e  rgb(44, 242, 14)  hsl(112, 90%, 50%)  Lime
#f2d40e  rgb(242, 212, 14)  hsl(52, 90%, 50%)  Gold
#0ef2d4  rgb(14, 242, 212)  hsl(172, 90%, 50%)  Turquoise Blue