#8A5AB5#8A5AB5
#8A5AB5 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.9% C 0.143 H 306.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5AB5 |
|---|---|
| RGB | rgb(138, 90, 181) |
| HSL | hsl(272, 38%, 53%) |
| HSV | hsv(272, 50%, 71%) |
| CMYK | cmyk(23.8%, 50.3%, 0%, 29%) |
| CIE-LAB | lab(47.04, 37.46, -40.96) |
| CIE-LCH | lch(47.04, 55.51, 312.44°) |
| OKLab | oklab(55.9% 0.0855 -0.1148) |
| OKLCH | oklch(55.9% 0.143 306.7) |
| XYZ | xyz(22.4762, 16.0520, 45.6214) |
| Luminance | 0.1605 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.36
Amethyst
#9B5FC0
ΔE00 4.04
Royal Purple
#7851A9
ΔE00 4.65
Deep Lilac
#966EBD
ΔE00 6.70
Purply
#983FB2
ΔE00 6.87
Purpley
#8756E4
ΔE00 7.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5AB5 #85B55A
analogous
#5C5AB5 #8A5AB5 #B55AB2
triadic
#8A5AB5 #B58A5A #5AB58A
tetradic
#8A5AB5 #B55C5A #85B55A #5AB2B5
square
#8A5AB5 #B55C5A #85B55A #5AB2B5
split-complementary
#8A5AB5 #B2B55A #5AB55C
monochromatic
#4C2E67 #6B4191 #8A5AB5 #A884C8 #C6AFDB
Accessibility & contrast
On white
4.99
#8A5AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.21
#8A5AB5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5AB5
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5AB5 | 1.00 | 4.99 | 4.21 | 4.99 |
| #FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#406EB8
Deuteranopia (green-blind)
#4E70B3
Tritanopia (blue-blind)
#836A7F
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5ab5; /* rgb */ color: rgb(138, 90, 181); /* oklch */ color: oklch(55.9% 0.143 306.7);
Tailwind
colors: {
custom: {
50: '#ae8acb',
500: '#8a5ab5',
950: '#000000',
},
}SCSS
$custom: #8a5ab5; $custom-light: #ae8acb; $custom-dark: #000000;
JSON
{
"hex": "#8a5ab5",
"rgb": {
"r": 138,
"g": 90,
"b": 181
},
"hsl": {
"h": 271.648,
"s": 38.075,
"l": 53.137
},
"oklch": {
"l": 0.55899,
"c": 0.14314,
"h": 306.7
},
"luminance": 0.16052
}Semantic roles & 50–950 ramp
primary
#8A5AB5
secondary
#B4C9A2
accent
#CE5A91
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110C13
muted
#807D82