#8A5AB7#8A5AB7
#8A5AB7 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.0% C 0.146 H 306.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5AB7 |
|---|---|
| RGB | rgb(138, 90, 183) |
| HSL | hsl(271, 39%, 54%) |
| HSV | hsv(271, 51%, 72%) |
| CMYK | cmyk(24.6%, 50.8%, 0%, 28.2%) |
| CIE-LAB | lab(47.15, 37.94, -41.96) |
| CIE-LCH | lch(47.15, 56.57, 312.12°) |
| OKLab | oklab(56.01% 0.0858 -0.1177) |
| OKLCH | oklch(56.01% 0.146 306.1) |
| XYZ | xyz(22.6829, 16.1347, 46.7099) |
| Luminance | 0.1613 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.40
Amethyst
#9B5FC0
ΔE00 3.98
Royal Purple
#7851A9
ΔE00 4.72
Deep Lilac
#966EBD
ΔE00 6.70
Purply
#983FB2
ΔE00 6.92
Purpley
#8756E4
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5AB7 #87B75A
analogous
#5B5AB7 #8A5AB7 #B75AB5
triadic
#8A5AB7 #B78A5A #5AB78A
tetradic
#8A5AB7 #B75B5A #87B75A #5AB5B7
square
#8A5AB7 #B75B5A #87B75A #5AB5B7
split-complementary
#8A5AB7 #B5B75A #5AB75B
monochromatic
#4C2E69 #6B4093 #8A5AB7 #A885CA #C6AFDC
Accessibility & contrast
On white
4.97
#8A5AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#8A5AB7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5AB7
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5AB7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5AB7 | 1.00 | 4.97 | 4.23 | 4.97 |
| #FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F6EBA
Deuteranopia (green-blind)
#4D70B5
Tritanopia (blue-blind)
#836A80
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5ab7; /* rgb */ color: rgb(138, 90, 183); /* oklch */ color: oklch(56.0% 0.146 306.1);
Tailwind
colors: {
custom: {
50: '#ae8acd',
500: '#8a5ab7',
950: '#000000',
},
}SCSS
$custom: #8a5ab7; $custom-light: #ae8acd; $custom-dark: #000000;
JSON
{
"hex": "#8a5ab7",
"rgb": {
"r": 138,
"g": 90,
"b": 183
},
"hsl": {
"h": 270.968,
"s": 39.241,
"l": 53.529
},
"oklch": {
"l": 0.56014,
"c": 0.1456,
"h": 306.1
},
"luminance": 0.16134
}Semantic roles & 50–950 ramp
primary
#8A5AB7
secondary
#B6CAA2
accent
#CF5992
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82