#8A5FEC

#8a5fec ≈ Medium Slate Blue

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

#8a5fec is a color from the violet family, with high lightness and strong saturation. In the RGB model it is made of 54.12% red, 37.25% green and 92.55% blue; printed in CMYK it uses 41.53% cyan, 59.75% magenta, 0% yellow and 7.45% black. Its hue angle is 258.3°, with 78.77% 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 brand accents. Black text on this color reaches a contrast ratio of 4.93:1 (WCAG AA). The closest named color is Medium Slate Blue (#7b68ee), ΔE 3.75.

Description generated from the measured properties of this color.

Conversions of #8a5fec 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.1964

Readable text 4.26:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕
Readable text 4.93:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓

Achromatopsia #7b7b7b ≈ 0.003% of males
Achromatomaly #8171b3 ≈ 0.001% of males
Protanopia #007cf1 ≈ 1.01% of males
Deuteranopia #0278e9 ≈ 1.27% of males
Tritanopia #6f7e9d ≈ 0.0001% of males
Protanomaly #5672ef ≈ 1.08% of males
Deuteranomaly #5a6fea ≈ 4.63% of males
Tritanomaly #7b73c2 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-8a5fec {
  color: #8a5fec;
}
Background
.bg-8a5fec {
  background-color: #8a5fec;
  color: #000000;
}
Border
.border-8a5fec {
  border: 2px solid #8a5fec;
}
CSS variables
:root {
  --color-primary: #8a5fec;
  --color-primary-rgb: 138 95 236;
  --color-primary-hsl: 258 79% 65%;
}
Gradient
.gradient-8a5fec {
  background: linear-gradient(135deg, #8a5fec, #d15fec);
}
Colored shadow
.shadow-8a5fec {
  box-shadow: 0 8px 24px rgb(138 95 236 / 0.35);
}

Medium Slate Blue
#8a5fec  rgb(138, 95, 236)  hsl(258, 79%, 65%)  Medium Slate Blue
#c1ec5f  rgb(193, 236, 95)  hsl(78, 79%, 65%)  Inchworm
#ec8a5f  rgb(236, 138, 95)  hsl(18, 79%, 65%)  Coral
#5fec8a  rgb(95, 236, 138)  hsl(138, 79%, 65%)  Light Green