#8A5BB6#8A5BB6
#8A5BB6 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.1% C 0.143 H 306.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5BB6 |
|---|---|
| RGB | rgb(138, 91, 182) |
| HSL | hsl(271, 38%, 54%) |
| HSV | hsv(271, 50%, 71%) |
| CMYK | cmyk(24.2%, 50%, 0%, 28.6%) |
| CIE-LAB | lab(47.32, 37.13, -41.11) |
| CIE-LCH | lch(47.32, 55.40, 312.09°) |
| OKLab | oklab(56.12% 0.0843 -0.1152) |
| OKLCH | oklch(56.12% 0.143 306.2) |
| XYZ | xyz(22.6641, 16.2630, 46.1920) |
| Luminance | 0.1626 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.12
Amethyst
#9B5FC0
ΔE00 3.90
Royal Purple
#7851A9
ΔE00 4.85
Deep Lilac
#966EBD
ΔE00 6.42
Purply
#983FB2
ΔE00 7.16
Purpley
#8756E4
ΔE00 7.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5BB6 #87B65B
analogous
#5C5BB6 #8A5BB6 #B65BB4
triadic
#8A5BB6 #B68A5B #5BB68A
tetradic
#8A5BB6 #B65C5B #87B65B #5BB4B6
square
#8A5BB6 #B65C5B #87B65B #5BB4B6
split-complementary
#8A5BB6 #B4B65B #5BB65C
monochromatic
#4C2E68 #6B4193 #8A5BB6 #A885C9 #C6B0DC
Accessibility & contrast
On white
4.94
#8A5BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#8A5BB6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5BB6
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5BB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5BB6 | 1.00 | 4.94 | 4.25 | 4.94 |
| #FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#416FB9
Deuteranopia (green-blind)
#4E71B4
Tritanopia (blue-blind)
#836B80
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a5bb6; /* rgb */ color: rgb(138, 91, 182); /* oklch */ color: oklch(56.1% 0.143 306.2);
Tailwind
colors: {
custom: {
50: '#ae8bcc',
500: '#8a5bb6',
950: '#000000',
},
}SCSS
$custom: #8a5bb6; $custom-light: #ae8bcc; $custom-dark: #000000;
JSON
{
"hex": "#8a5bb6",
"rgb": {
"r": 138,
"g": 91,
"b": 182
},
"hsl": {
"h": 270.989,
"s": 38.397,
"l": 53.529
},
"oklch": {
"l": 0.56121,
"c": 0.14272,
"h": 306.2
},
"luminance": 0.16263
}Semantic roles & 50–950 ramp
primary
#8A5BB6
secondary
#B6CAA3
accent
#CE5992
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82