#CF31FF

#cf31ff ≈ Electric Purple

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

#cf31ff is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 81.18% red, 19.22% green and 100% blue; printed in CMYK it uses 18.82% cyan, 80.78% magenta, 0% yellow and 0% black. Its hue angle is 286.02°, with 100% saturation and 59.61% 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.54:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 5.16.

Description generated from the measured properties of this color.

Conversions of #cf31ff 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.2268

Readable text 3.79:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.54:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #838383 ≈ 0.003% of males
Achromatomaly #a76bc1 ≈ 0.001% of males
Protanopia #007aff ≈ 1.01% of males
Deuteranopia #2e87fb ≈ 1.27% of males
Tritanopia #cc649b ≈ 0.0001% of males
Protanomaly #7c65ff ≈ 1.08% of males
Deuteranomaly #8d6ffc ≈ 4.63% of males
Tritanomaly #cd54cb ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-cf31ff {
  color: #cf31ff;
}
Background
.bg-cf31ff {
  background-color: #cf31ff;
  color: #000000;
}
Border
.border-cf31ff {
  border: 2px solid #cf31ff;
}
CSS variables
:root {
  --color-primary: #cf31ff;
  --color-primary-rgb: 207 49 255;
  --color-primary-hsl: 286 100% 60%;
}
Gradient
.gradient-cf31ff {
  background: linear-gradient(135deg, #cf31ff, #ff31c8);
}
Colored shadow
.shadow-cf31ff {
  box-shadow: 0 8px 24px rgb(207 49 255 / 0.35);
}

Electric Purple
#cf31ff  rgb(207, 49, 255)  hsl(286, 100%, 60%)  Electric Purple
#61ff31  rgb(97, 255, 49)  hsl(106, 100%, 60%)  Harlequin
#ffcf31  rgb(255, 207, 49)  hsl(46, 100%, 60%)  Sunglow
#31ffcf  rgb(49, 255, 207)  hsl(166, 100%, 60%)  Aquamarine