#A840FA

#a840fa ≈ Electric Purple

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

#a840fa is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 65.88% red, 25.1% green and 98.04% blue; printed in CMYK it uses 32.8% cyan, 74.4% magenta, 0% yellow and 1.96% black. Its hue angle is 273.55°, with 94.9% saturation and 61.57% 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.78:1 (WCAG AA). The closest named color is Electric Purple (#bf00ff), ΔE 4.32.

Description generated from the measured properties of this color.

Conversions of #a840fa 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.1889

Readable text 4.39:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.78:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #787878 ≈ 0.003% of males
Achromatomaly #8e66bb ≈ 0.001% of males
Protanopia #0076ff ≈ 1.01% of males
Deuteranopia #0078f6 ≈ 1.27% of males
Tritanopia #996f9b ≈ 0.0001% of males
Protanomaly #5c64fd ≈ 1.08% of males
Deuteranomaly #6866f8 ≈ 4.63% of males
Tritanomaly #9f5fc8 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-a840fa {
  color: #a840fa;
}
Background
.bg-a840fa {
  background-color: #a840fa;
  color: #000000;
}
Border
.border-a840fa {
  border: 2px solid #a840fa;
}
CSS variables
:root {
  --color-primary: #a840fa;
  --color-primary-rgb: 168 64 250;
  --color-primary-hsl: 274 95% 62%;
}
Gradient
.gradient-a840fa {
  background: linear-gradient(135deg, #a840fa, #fa40ef);
}
Colored shadow
.shadow-a840fa {
  box-shadow: 0 8px 24px rgb(168 64 250 / 0.35);
}

Electric Purple
#a840fa  rgb(168, 64, 250)  hsl(274, 95%, 62%)  Electric Purple
#92fa40  rgb(146, 250, 64)  hsl(94, 95%, 62%)  Lawn Green
#faa840  rgb(250, 168, 64)  hsl(34, 95%, 62%)  Yellow Orange
#40faa8  rgb(64, 250, 168)  hsl(154, 95%, 62%)  Medium Spring Green