#8A5AB2#8A5AB2
#8A5AB2 is a mid, vivid violet. Relative luminance 0.159; OKLCH L 55.7% C 0.139 H 307.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5AB2 |
|---|---|
| RGB | rgb(138, 90, 178) |
| HSL | hsl(273, 36%, 53%) |
| HSV | hsv(273, 49%, 70%) |
| CMYK | cmyk(22.5%, 49.4%, 0%, 30.2%) |
| CIE-LAB | lab(46.88, 36.75, -39.46) |
| CIE-LCH | lch(46.88, 53.92, 312.96°) |
| OKLab | oklab(55.73% 0.0852 -0.1104) |
| OKLCH | oklch(55.73% 0.139 307.7) |
| XYZ | xyz(22.1717, 15.9302, 44.0177) |
| Luminance | 0.1593 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.50
Amethyst
#9B5FC0
ΔE00 4.19
Royal Purple
#7851A9
ΔE00 4.61
Deep Lilac
#966EBD
ΔE00 6.73
Purply
#983FB2
ΔE00 6.82
Medium Purple
#9E43A2
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5AB2 #82B25A
analogous
#5E5AB2 #8A5AB2 #B25AAE
triadic
#8A5AB2 #B28A5A #5AB28A
tetradic
#8A5AB2 #B25E5A #82B25A #5AAEB2
square
#8A5AB2 #B25E5A #82B25A #5AAEB2
split-complementary
#8A5AB2 #AEB25A #5AB25E
monochromatic
#4B2E63 #6B428D #8A5AB2 #A884C5 #C5ADD9
Accessibility & contrast
On white
5.02
#8A5AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.19
#8A5AB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5AB2
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5AB2 | 1.00 | 5.02 | 4.19 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#5070B0
Tritanopia (blue-blind)
#84697E
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #8a5ab2; /* rgb */ color: rgb(138, 90, 178); /* oklch */ color: oklch(55.7% 0.139 307.7);
Tailwind
colors: {
custom: {
50: '#ae8ac9',
500: '#8a5ab2',
950: '#000000',
},
}SCSS
$custom: #8a5ab2; $custom-light: #ae8ac9; $custom-dark: #000000;
JSON
{
"hex": "#8a5ab2",
"rgb": {
"r": 138,
"g": 90,
"b": 178
},
"hsl": {
"h": 272.727,
"s": 36.364,
"l": 52.549
},
"oklch": {
"l": 0.55728,
"c": 0.13946,
"h": 307.7
},
"luminance": 0.1593
}Semantic roles & 50–950 ramp
primary
#8A5AB2
secondary
#B2C7A1
accent
#CC5B8F
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82