#8a5fec ≈ Medium Slate Blue
#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.
| 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 luminance | 0.1964 |
Shades
#8a5fec mixed progressively with black.
Tints
#8a5fec mixed progressively with white.
Tones
#8a5fec mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-8a5fec {
color: #8a5fec;
}
.bg-8a5fec {
background-color: #8a5fec;
color: #000000;
}
.border-8a5fec {
border: 2px solid #8a5fec;
}
:root {
--color-primary: #8a5fec;
--color-primary-rgb: 138 95 236;
--color-primary-hsl: 258 79% 65%;
}
.gradient-8a5fec {
background: linear-gradient(135deg, #8a5fec, #d15fec);
}
.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