#8A5AB1#8A5AB1
#8A5AB1 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.138 H 308.0°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5AB1 |
|---|---|
| RGB | rgb(138, 90, 177) |
| HSL | hsl(273, 36%, 52%) |
| HSV | hsv(273, 49%, 69%) |
| CMYK | cmyk(22%, 49.2%, 0%, 30.6%) |
| CIE-LAB | lab(46.83, 36.51, -38.96) |
| CIE-LCH | lch(46.83, 53.39, 313.14°) |
| OKLab | oklab(55.67% 0.0851 -0.1089) |
| OKLCH | oklch(55.67% 0.138 308) |
| XYZ | xyz(22.0716, 15.8902, 43.4908) |
| Luminance | 0.1589 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.60
Amethyst
#9B5FC0
ΔE00 4.25
Royal Purple
#7851A9
ΔE00 4.61
Deep Lilac
#966EBD
ΔE00 6.75
Purply
#983FB2
ΔE00 6.82
Medium Purple
#9E43A2
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5AB1 #81B15A
analogous
#5F5AB1 #8A5AB1 #B15AAD
triadic
#8A5AB1 #B18A5A #5AB18A
tetradic
#8A5AB1 #B15F5A #81B15A #5AADB1
square
#8A5AB1 #B15F5A #81B15A #5AADB1
split-complementary
#8A5AB1 #ADB15A #5AB15F
monochromatic
#4B2E62 #6B428C #8A5AB1 #A784C5 #C5ADD8
Accessibility & contrast
On white
5.03
#8A5AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#8A5AB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5AB1
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5AB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5AB1 | 1.00 | 5.03 | 4.18 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#436DB4
Deuteranopia (green-blind)
#5070AF
Tritanopia (blue-blind)
#85697D
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a5ab1; /* rgb */ color: rgb(138, 90, 177); /* oklch */ color: oklch(55.7% 0.138 308.0);
Tailwind
colors: {
custom: {
50: '#ae8ac9',
500: '#8a5ab1',
950: '#000000',
},
}SCSS
$custom: #8a5ab1; $custom-light: #ae8ac9; $custom-dark: #000000;
JSON
{
"hex": "#8a5ab1",
"rgb": {
"r": 138,
"g": 90,
"b": 177
},
"hsl": {
"h": 273.103,
"s": 35.802,
"l": 52.353
},
"oklch": {
"l": 0.55672,
"c": 0.13823,
"h": 308
},
"luminance": 0.1589
}Semantic roles & 50–950 ramp
primary
#8A5AB1
secondary
#B1C6A0
accent
#CC5C8E
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82