#AF51FA

#af51fa ≈ Electric Purple

  • violet
  • Lightness: high
  • Saturation: strong
  • Cool

#af51fa is a color from the violet family, with high lightness and strong saturation. In the RGB model it is made of 68.63% red, 31.76% green and 98.04% blue; printed in CMYK it uses 30% cyan, 67.6% magenta, 0% yellow and 1.96% black. Its hue angle is 273.37°, with 94.41% saturation and 64.9% 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 5.38:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 6.58.

Description generated from the measured properties of this color.

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

Readable text 3.9:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 5.38:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #818181 ≈ 0.003% of males
Achromatomaly #9671be ≈ 0.001% of males
Protanopia #007eff ≈ 1.01% of males
Deuteranopia #1a81f6 ≈ 1.27% of males
Tritanopia #a277a0 ≈ 0.0001% of males
Protanomaly #6a6ffd ≈ 1.08% of males
Deuteranomaly #7571f8 ≈ 4.63% of males
Tritanomaly #a76aca ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-af51fa {
  color: #af51fa;
}
Background
.bg-af51fa {
  background-color: #af51fa;
  color: #000000;
}
Border
.border-af51fa {
  border: 2px solid #af51fa;
}
CSS variables
:root {
  --color-primary: #af51fa;
  --color-primary-rgb: 175 81 250;
  --color-primary-hsl: 273 94% 65%;
}
Gradient
.gradient-af51fa {
  background: linear-gradient(135deg, #af51fa, #fa51f1);
}
Colored shadow
.shadow-af51fa {
  box-shadow: 0 8px 24px rgb(175 81 250 / 0.35);
}

Electric Purple
#af51fa  rgb(175, 81, 250)  hsl(273, 94%, 65%)  Electric Purple
#9cfa51  rgb(156, 250, 81)  hsl(93, 94%, 65%)  Lawn Green
#faaf51  rgb(250, 175, 81)  hsl(33, 94%, 65%)  Yellow Orange
#51faaf  rgb(81, 250, 175)  hsl(153, 94%, 65%)  Medium Spring Green