#8A5BB8#8A5BB8
#8A5BB8 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.145 H 305.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BB8 |
|---|---|
| RGB | rgb(138, 91, 184) |
| HSL | hsl(270, 40%, 54%) |
| HSV | hsv(270, 51%, 72%) |
| CMYK | cmyk(25%, 50.5%, 0%, 27.8%) |
| CIE-LAB | lab(47.43, 37.61, -42.10) |
| CIE-LCH | lch(47.43, 56.46, 311.78°) |
| OKLab | oklab(56.24% 0.0845 -0.1181) |
| OKLCH | oklch(56.24% 0.145 305.6) |
| XYZ | xyz(22.8722, 16.3463, 47.2883) |
| Luminance | 0.1635 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.22
Amethyst
#9B5FC0
ΔE00 3.85
Royal Purple
#7851A9
ΔE00 4.93
Deep Lilac
#966EBD
ΔE00 6.43
Purply
#983FB2
ΔE00 7.22
Purpley
#8756E4
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BB8 #89B85B
analogous
#5C5BB8 #8A5BB8 #B85BB7
triadic
#8A5BB8 #B88A5B #5BB88A
tetradic
#8A5BB8 #B85C5B #89B85B #5BB7B8
square
#8A5BB8 #B85C5B #89B85B #5BB7B8
split-complementary
#8A5BB8 #B7B85B #5BB85C
monochromatic
#4D2E6A #6B4195 #8A5BB8 #A886CA #C7B0DD
Accessibility & contrast
On white
4.92
#8A5BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#8A5BB8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5BB8
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BB8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5BB8 | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#406FBB
Deuteranopia (green-blind)
#4D71B6
Tritanopia (blue-blind)
#836B81
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5bb8; /* rgb */ color: rgb(138, 91, 184); /* oklch */ color: oklch(56.2% 0.145 305.6);
Tailwind
colors: {
custom: {
50: '#ae8bce',
500: '#8a5bb8',
950: '#000000',
},
}SCSS
$custom: #8a5bb8; $custom-light: #ae8bce; $custom-dark: #000000;
JSON
{
"hex": "#8a5bb8",
"rgb": {
"r": 138,
"g": 91,
"b": 184
},
"hsl": {
"h": 270.323,
"s": 39.574,
"l": 53.922
},
"oklch": {
"l": 0.56236,
"c": 0.14519,
"h": 305.6
},
"luminance": 0.16346
}Semantic roles & 50–950 ramp
primary
#8A5BB8
secondary
#B7CBA4
accent
#CF5893
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82