#8A5BB7#8A5BB7
#8A5BB7 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.144 H 305.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BB7 |
|---|---|
| RGB | rgb(138, 91, 183) |
| HSL | hsl(271, 39%, 54%) |
| HSV | hsv(271, 50%, 72%) |
| CMYK | cmyk(24.6%, 50.3%, 0%, 28.2%) |
| CIE-LAB | lab(47.37, 37.37, -41.61) |
| CIE-LCH | lch(47.37, 55.93, 311.93°) |
| OKLab | oklab(56.18% 0.0844 -0.1166) |
| OKLCH | oklch(56.18% 0.144 305.9) |
| XYZ | xyz(22.7678, 16.3045, 46.7382) |
| Luminance | 0.1630 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.15
Amethyst
#9B5FC0
ΔE00 3.87
Royal Purple
#7851A9
ΔE00 4.89
Deep Lilac
#966EBD
ΔE00 6.42
Purply
#983FB2
ΔE00 7.19
Purpley
#8756E4
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BB7 #88B75B
analogous
#5C5BB7 #8A5BB7 #B75BB6
triadic
#8A5BB7 #B78A5B #5BB78A
tetradic
#8A5BB7 #B75C5B #88B75B #5BB6B7
square
#8A5BB7 #B75C5B #88B75B #5BB6B7
split-complementary
#8A5BB7 #B6B75B #5BB75C
monochromatic
#4C2E69 #6B4194 #8A5BB7 #A886CA #C7B0DC
Accessibility & contrast
On white
4.93
#8A5BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.26
#8A5BB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5BB7
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5BB7 | 1.00 | 4.93 | 4.26 | 4.93 |
| #FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#406FBA
Deuteranopia (green-blind)
#4E71B5
Tritanopia (blue-blind)
#836B80
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5bb7; /* rgb */ color: rgb(138, 91, 183); /* oklch */ color: oklch(56.2% 0.144 305.9);
Tailwind
colors: {
custom: {
50: '#ae8bcd',
500: '#8a5bb7',
950: '#000000',
},
}SCSS
$custom: #8a5bb7; $custom-light: #ae8bcd; $custom-dark: #000000;
JSON
{
"hex": "#8a5bb7",
"rgb": {
"r": 138,
"g": 91,
"b": 183
},
"hsl": {
"h": 270.652,
"s": 38.983,
"l": 53.725
},
"oklch": {
"l": 0.56178,
"c": 0.14396,
"h": 305.9
},
"luminance": 0.16304
}Semantic roles & 50–950 ramp
primary
#8A5BB7
secondary
#B6CBA3
accent
#CF5993
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82