#8A5BB9#8A5BB9
#8A5BB9 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.3% C 0.146 H 305.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BB9 |
|---|---|
| RGB | rgb(138, 91, 185) |
| HSL | hsl(270, 40%, 54%) |
| HSV | hsv(270, 51%, 73%) |
| CMYK | cmyk(25.4%, 50.8%, 0%, 27.5%) |
| CIE-LAB | lab(47.48, 37.86, -42.60) |
| CIE-LCH | lch(47.48, 56.99, 311.63°) |
| OKLab | oklab(56.29% 0.0846 -0.1195) |
| OKLCH | oklch(56.29% 0.146 305.3) |
| XYZ | xyz(22.9774, 16.3884, 47.8423) |
| Luminance | 0.1639 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.31
Amethyst
#9B5FC0
ΔE00 3.84
Royal Purple
#7851A9
ΔE00 4.99
Deep Lilac
#966EBD
ΔE00 6.45
Purpley
#8756E4
ΔE00 7.17
Purply
#983FB2
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BB9 #8AB95B
analogous
#5B5BB9 #8A5BB9 #B95BB9
triadic
#8A5BB9 #B98A5B #5BB98A
tetradic
#8A5BB9 #B95B5B #8AB95B #5BB9B9
square
#8A5BB9 #B95B5B #8AB95B #5BB9B9
split-complementary
#8A5BB9 #B9B95B #5BB95B
monochromatic
#4D2E6C #6B4097 #8A5BB9 #A986CB #C7B1DE
Accessibility & contrast
On white
4.91
#8A5BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#8A5BB9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5BB9
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5BB9 | 1.00 | 4.91 | 4.28 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F6FBC
Deuteranopia (green-blind)
#4C71B7
Tritanopia (blue-blind)
#826C81
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #8a5bb9; /* rgb */ color: rgb(138, 91, 185); /* oklch */ color: oklch(56.3% 0.146 305.3);
Tailwind
colors: {
custom: {
50: '#ae8bce',
500: '#8a5bb9',
950: '#000000',
},
}SCSS
$custom: #8a5bb9; $custom-light: #ae8bce; $custom-dark: #000000;
JSON
{
"hex": "#8a5bb9",
"rgb": {
"r": 138,
"g": 91,
"b": 185
},
"hsl": {
"h": 270,
"s": 40.171,
"l": 54.118
},
"oklch": {
"l": 0.56294,
"c": 0.14642,
"h": 305.3
},
"luminance": 0.16388
}Semantic roles & 50–950 ramp
primary
#8A5BB9
secondary
#B8CCA4
accent
#D05894
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82