#D40DFB

#d40dfb ≈ Electric Purple

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

#d40dfb 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.1% green and 98.43% blue; printed in CMYK it uses 15.54% cyan, 94.82% magenta, 0% yellow and 1.57% black. Its hue angle is 290.17°, with 96.75% saturation and 51.76% 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.25:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.2.

Description generated from the measured properties of this color.

Conversions of #d40dfb 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.2125

Readable text 4:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.25:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7f7f7f ≈ 0.003% of males
Achromatomaly #a865be ≈ 0.001% of males
Protanopia #0074ff ≈ 1.01% of males
Deuteranopia #2c85f7 ≈ 1.27% of males
Tritanopia #d35795 ≈ 0.0001% of males
Protanomaly #7e5cfe ≈ 1.08% of males
Deuteranomaly #9069f8 ≈ 4.63% of males
Tritanomaly #d444c6 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d40dfb {
  color: #d40dfb;
}
Background
.bg-d40dfb {
  background-color: #d40dfb;
  color: #000000;
}
Border
.border-d40dfb {
  border: 2px solid #d40dfb;
}
CSS variables
:root {
  --color-primary: #d40dfb;
  --color-primary-rgb: 212 13 251;
  --color-primary-hsl: 290 97% 52%;
}
Gradient
.gradient-d40dfb {
  background: linear-gradient(135deg, #d40dfb, #fb0dab);
}
Colored shadow
.shadow-d40dfb {
  box-shadow: 0 8px 24px rgb(212 13 251 / 0.35);
}

Electric Purple
#d40dfb  rgb(212, 13, 251)  hsl(290, 97%, 52%)  Electric Purple
#34fb0d  rgb(52, 251, 13)  hsl(110, 97%, 52%)  Neon Green
#fbd40d  rgb(251, 212, 13)  hsl(50, 97%, 52%)  Gold
#0dfbd4  rgb(13, 251, 212)  hsl(170, 97%, 52%)  Aquamarine