#C402FF

#c402ff ≈ Electric Purple

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

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

Description generated from the measured properties of this color.

Conversions of #c402ff 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.19

Readable text 4.38:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.8:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #797979 ≈ 0.003% of males
Achromatomaly #9c5fbe ≈ 0.001% of males
Protanopia #0070ff ≈ 1.01% of males
Deuteranopia #007cfb ≈ 1.27% of males
Tritanopia #be5b96 ≈ 0.0001% of males
Protanomaly #6c58ff ≈ 1.08% of males
Deuteranomaly #7d62fc ≈ 4.63% of males
Tritanomaly #c047c9 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Electric Purple
#c402ff  rgb(196, 2, 255)  hsl(286, 100%, 50%)  Electric Purple
#3dff02  rgb(61, 255, 2)  hsl(106, 100%, 50%)  Harlequin
#ffc402  rgb(255, 196, 2)  hsl(46, 100%, 50%)  Mikado Yellow
#02ffc4  rgb(2, 255, 196)  hsl(166, 100%, 50%)  Aquamarine