#AF40EF

#af40ef ≈ Electric Purple

  • violet
  • Lightness: medium
  • Saturation: strong
  • Cool

#af40ef is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 68.63% red, 25.1% green and 93.73% blue; printed in CMYK it uses 26.78% cyan, 73.22% magenta, 0% yellow and 6.27% black. Its hue angle is 278.06°, with 84.54% saturation and 59.41% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. 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 3.93.

Description generated from the measured properties of this color.

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

Readable text 4.37: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 #9267b5 ≈ 0.001% of males
Protanopia #0074f4 ≈ 1.01% of males
Deuteranopia #0f7aeb ≈ 1.27% of males
Tritanopia #a66995 ≈ 0.0001% of males
Protanomaly #6763f2 ≈ 1.08% of males
Deuteranomaly #7468ed ≈ 4.63% of males
Tritanomaly #aa5bc0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-af40ef {
  color: #af40ef;
}
Background
.bg-af40ef {
  background-color: #af40ef;
  color: #000000;
}
Border
.border-af40ef {
  border: 2px solid #af40ef;
}
CSS variables
:root {
  --color-primary: #af40ef;
  --color-primary-rgb: 175 64 239;
  --color-primary-hsl: 278 85% 59%;
}
Gradient
.gradient-af40ef {
  background: linear-gradient(135deg, #af40ef, #ef40d7);
}
Colored shadow
.shadow-af40ef {
  box-shadow: 0 8px 24px rgb(175 64 239 / 0.35);
}

Electric Purple
#af40ef  rgb(175, 64, 239)  hsl(278, 85%, 59%)  Electric Purple
#80ef40  rgb(128, 239, 64)  hsl(98, 85%, 59%)  Lawn Green
#efaf40  rgb(239, 175, 64)  hsl(38, 85%, 59%)  Pastel Orange
#40efaf  rgb(64, 239, 175)  hsl(158, 85%, 59%)  Medium Spring Green