#8A1FF2

#8a1ff2 ≈ Electric Violet

  • violet
  • Lightness: medium
  • Saturation: vivid
  • Cool

#8a1ff2 is a color from the violet family, with medium lightness and vivid saturation. In the RGB model it is made of 54.12% red, 12.16% green and 94.9% blue; printed in CMYK it uses 42.98% cyan, 87.19% magenta, 0% yellow and 5.1% black. Its hue angle is 270.43°, with 89.03% saturation and 53.53% 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. White text on this color reaches a contrast ratio of 5.9:1 (WCAG AA). The closest named color is Electric Violet (#8f00ff), ΔE 1.65.

Description generated from the measured properties of this color.

Conversions of #8a1ff2 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.1279

Readable text 5.9:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.56:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #646464 ≈ 0.003% of males
Achromatomaly #7551b0 ≈ 0.001% of males
Protanopia #0064f7 ≈ 1.01% of males
Deuteranopia #0062ee ≈ 1.27% of males
Tritanopia #6f6390 ≈ 0.0001% of males
Protanomaly #2b51f5 ≈ 1.08% of males
Deuteranomaly #3b4ff0 ≈ 4.63% of males
Tritanomaly #7b50bf ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-8a1ff2 {
  color: #8a1ff2;
}
Background
.bg-8a1ff2 {
  background-color: #8a1ff2;
  color: #ffffff;
}
Border
.border-8a1ff2 {
  border: 2px solid #8a1ff2;
}
CSS variables
:root {
  --color-primary: #8a1ff2;
  --color-primary-rgb: 138 31 242;
  --color-primary-hsl: 270 89% 54%;
}
Gradient
.gradient-8a1ff2 {
  background: linear-gradient(135deg, #8a1ff2, #f21ff0);
}
Colored shadow
.shadow-8a1ff2 {
  box-shadow: 0 8px 24px rgb(138 31 242 / 0.35);
}

Electric Violet
#8a1ff2  rgb(138, 31, 242)  hsl(270, 89%, 54%)  Electric Violet
#87f21f  rgb(135, 242, 31)  hsl(90, 89%, 54%)  Lawn Green
#f28a1f  rgb(242, 138, 31)  hsl(30, 89%, 54%)  Tangerine
#1ff28a  rgb(31, 242, 138)  hsl(150, 89%, 54%)  Medium Spring Green