#D31FEB

#d31feb ≈ Electric Purple

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

#d31feb is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 82.75% red, 12.16% green and 92.16% blue; printed in CMYK it uses 10.21% cyan, 86.81% magenta, 0% yellow and 7.84% black. Its hue angle is 292.94°, with 83.61% 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 5.17:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 5.2.

Description generated from the measured properties of this color.

Conversions of #d31feb into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#cc33ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.2083

Readable text 4.07:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.17:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7e7e7e ≈ 0.003% of males
Achromatomaly #a765b4 ≈ 0.001% of males
Protanopia #0072f0 ≈ 1.01% of males
Deuteranopia #4684e7 ≈ 1.27% of males
Tritanopia #d5528d ≈ 0.0001% of males
Protanomaly #835cee ≈ 1.08% of males
Deuteranomaly #946ae9 ≈ 4.63% of males
Tritanomaly #d443ba ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-d31feb {
  color: #d31feb;
}
Background
.bg-d31feb {
  background-color: #d31feb;
  color: #000000;
}
Border
.border-d31feb {
  border: 2px solid #d31feb;
}
CSS variables
:root {
  --color-primary: #d31feb;
  --color-primary-rgb: 211 31 235;
  --color-primary-hsl: 293 84% 52%;
}
Gradient
.gradient-d31feb {
  background: linear-gradient(135deg, #d31feb, #eb1f9d);
}
Colored shadow
.shadow-d31feb {
  box-shadow: 0 8px 24px rgb(211 31 235 / 0.35);
}

Electric Purple
#d31feb  rgb(211, 31, 235)  hsl(293, 84%, 52%)  Electric Purple
#37eb1f  rgb(55, 235, 31)  hsl(113, 84%, 52%)  Lime
#ebd31f  rgb(235, 211, 31)  hsl(53, 84%, 52%)  Citrine
#1febd3  rgb(31, 235, 211)  hsl(173, 84%, 52%)  Turquoise