#C040F8

#c040f8 ≈ Electric Purple

  • magenta
  • Lightness: medium
  • Saturation: strong
  • Cool

#c040f8 is a color from the magenta family, with medium lightness and strong saturation. In the RGB model it is made of 75.29% red, 25.1% green and 97.25% blue; printed in CMYK it uses 22.58% cyan, 74.19% magenta, 0% yellow and 2.75% black. Its hue angle is 281.74°, with 92.93% saturation and 61.18% lightness in HSL. It is a cool color, 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.33:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.7.

Description generated from the measured properties of this color.

Conversions of #c040f8 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.2165

Readable text 3.94:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.33:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #808080 ≈ 0.003% of males
Achromatomaly #9e6cbc ≈ 0.001% of males
Protanopia #007afd ≈ 1.01% of males
Deuteranopia #2b83f4 ≈ 1.27% of males
Tritanopia #ba6a9a ≈ 0.0001% of males
Protanomaly #7467fb ≈ 1.08% of males
Deuteranomaly #836ef6 ≈ 4.63% of males
Tritanomaly #bc5cc7 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-c040f8 {
  color: #c040f8;
}
Background
.bg-c040f8 {
  background-color: #c040f8;
  color: #000000;
}
Border
.border-c040f8 {
  border: 2px solid #c040f8;
}
CSS variables
:root {
  --color-primary: #c040f8;
  --color-primary-rgb: 192 64 248;
  --color-primary-hsl: 282 93% 61%;
}
Gradient
.gradient-c040f8 {
  background: linear-gradient(135deg, #c040f8, #f840d4);
}
Colored shadow
.shadow-c040f8 {
  box-shadow: 0 8px 24px rgb(192 64 248 / 0.35);
}

Electric Purple
#c040f8  rgb(192, 64, 248)  hsl(282, 93%, 61%)  Electric Purple
#78f840  rgb(120, 248, 64)  hsl(102, 93%, 61%)  Lawn Green
#f8c040  rgb(248, 192, 64)  hsl(42, 93%, 61%)  Saffron
#40f8c0  rgb(64, 248, 192)  hsl(162, 93%, 61%)  Aquamarine