#8A5AAA#8A5AAA
#8A5AAA is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.3% C 0.130 H 310.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5AAA |
|---|---|
| RGB | rgb(138, 90, 170) |
| HSL | hsl(276, 32%, 51%) |
| HSV | hsv(276, 47%, 67%) |
| CMYK | cmyk(18.8%, 47.1%, 0%, 33.3%) |
| CIE-LAB | lab(46.47, 34.87, -35.43) |
| CIE-LCH | lch(46.47, 49.71, 314.55°) |
| OKLab | oklab(55.29% 0.0842 -0.0987) |
| OKLCH | oklch(55.29% 0.13 310.5) |
| XYZ | xyz(21.3918, 15.6182, 39.9101) |
| Luminance | 0.1562 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.65
Royal Purple
#7851A9
ΔE00 4.91
Amethyst
#9B5FC0
ΔE00 4.94
Dark Lavender
#856798
ΔE00 6.88
Purply
#983FB2
ΔE00 6.97
Deep Lilac
#966EBD
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5AAA #7AAA5A
analogous
#625AAA #8A5AAA #AA5AA2
triadic
#8A5AAA #AA8A5A #5AAA8A
tetradic
#8A5AAA #AA625A #7AAA5A #5AA2AA
square
#8A5AAA #AA625A #7AAA5A #5AA2AA
split-complementary
#8A5AAA #A2AA5A #5AAA62
monochromatic
#492F5B #6A4483 #8A5AAA #A782BF #C3ABD4
Accessibility & contrast
On white
5.09
#8A5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.12
#8A5AAA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5AAA
5.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5AAA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5AAA | 1.00 | 5.09 | 4.12 | 5.09 |
| #FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#486CAD
Deuteranopia (green-blind)
#546FA8
Tritanopia (blue-blind)
#86677A
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #8a5aaa; /* rgb */ color: rgb(138, 90, 170); /* oklch */ color: oklch(55.3% 0.130 310.5);
Tailwind
colors: {
custom: {
50: '#ae8ac3',
500: '#8a5aaa',
950: '#000000',
},
}SCSS
$custom: #8a5aaa; $custom-light: #ae8ac3; $custom-dark: #000000;
JSON
{
"hex": "#8a5aaa",
"rgb": {
"r": 138,
"g": 90,
"b": 170
},
"hsl": {
"h": 276,
"s": 32,
"l": 50.98
},
"oklch": {
"l": 0.55286,
"c": 0.12968,
"h": 310.5
},
"luminance": 0.15618
}Semantic roles & 50–950 ramp
primary
#8A5AAA
secondary
#ACC29E
accent
#C86089
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81