#C40AFA

#c40afa ≈ Electric Purple

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

#c40afa is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 76.86% red, 3.92% green and 98.04% blue; printed in CMYK it uses 21.6% cyan, 96% magenta, 0% yellow and 1.96% black. Its hue angle is 286.5°, with 96% saturation and 50.98% 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.77:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 1.22.

Description generated from the measured properties of this color.

Conversions of #c40afa 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.1885

Readable text 4.4:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.77:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #787878 ≈ 0.003% of males
Achromatomaly #9c5fbb ≈ 0.001% of males
Protanopia #006fff ≈ 1.01% of males
Deuteranopia #007cf6 ≈ 1.27% of males
Tritanopia #bf5994 ≈ 0.0001% of males
Protanomaly #6e58fd ≈ 1.08% of males
Deuteranomaly #7f62f7 ≈ 4.63% of males
Tritanomaly #c146c5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c40afa {
  color: #c40afa;
}
Background
.bg-c40afa {
  background-color: #c40afa;
  color: #000000;
}
Border
.border-c40afa {
  border: 2px solid #c40afa;
}
CSS variables
:root {
  --color-primary: #c40afa;
  --color-primary-rgb: 196 10 250;
  --color-primary-hsl: 287 96% 51%;
}
Gradient
.gradient-c40afa {
  background: linear-gradient(135deg, #c40afa, #fa0ab8);
}
Colored shadow
.shadow-c40afa {
  box-shadow: 0 8px 24px rgb(196 10 250 / 0.35);
}

Electric Purple
#c40afa  rgb(196, 10, 250)  hsl(287, 96%, 51%)  Electric Purple
#40fa0a  rgb(64, 250, 10)  hsl(107, 96%, 51%)  Harlequin
#fac40a  rgb(250, 196, 10)  hsl(47, 96%, 51%)  Golden Poppy
#0afac4  rgb(10, 250, 196)  hsl(167, 96%, 51%)  Aquamarine