#8A59BB#8A59BB
#8A59BB is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.1% C 0.152 H 305.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #8A59BB |
|---|---|
| RGB | rgb(138, 89, 187) |
| HSL | hsl(270, 42%, 54%) |
| HSV | hsv(270, 52%, 73%) |
| CMYK | cmyk(26.2%, 52.4%, 0%, 26.7%) |
| CIE-LAB | lab(47.15, 39.47, -44.28) |
| CIE-LCH | lch(47.15, 59.32, 311.71°) |
| OKLab | oklab(56.09% 0.0875 -0.1244) |
| OKLCH | oklch(56.09% 0.152 305.1) |
| XYZ | xyz(23.0213, 16.1360, 48.9058) |
| Luminance | 0.1614 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 1.96
Amethyst
#9B5FC0
ΔE00 4.10
Royal Purple
#7851A9
ΔE00 4.82
Purpley
#8756E4
ΔE00 6.71
Purply
#983FB2
ΔE00 6.84
Deep Lilac
#966EBD
ΔE00 7.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A59BB #8ABB59
analogous
#5959BB #8A59BB #BB59BB
triadic
#8A59BB #BB8A59 #59BB8A
tetradic
#8A59BB #BB5959 #8ABB59 #59BBBB
square
#8A59BB #BB5959 #8ABB59 #59BBBB
split-complementary
#8A59BB #BBBB59 #59BB59
monochromatic
#4D2D6D #6B3E98 #8A59BB #A984CD #C7B0DF
Accessibility & contrast
On white
4.97
#8A59BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#8A59BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A59BB
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A59BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A59BB | 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)
#3A6EBE
Deuteranopia (green-blind)
#4970B9
Tritanopia (blue-blind)
#826B81
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #8a59bb; /* rgb */ color: rgb(138, 89, 187); /* oklch */ color: oklch(56.1% 0.152 305.1);
Tailwind
colors: {
custom: {
50: '#af89d0',
500: '#8a59bb',
950: '#000000',
},
}SCSS
$custom: #8a59bb; $custom-light: #af89d0; $custom-dark: #000000;
JSON
{
"hex": "#8a59bb",
"rgb": {
"r": 138,
"g": 89,
"b": 187
},
"hsl": {
"h": 270,
"s": 41.88,
"l": 54.118
},
"oklch": {
"l": 0.56087,
"c": 0.15211,
"h": 305.1
},
"luminance": 0.16136
}Semantic roles & 50–950 ramp
primary
#8A59BB
secondary
#B8CDA3
accent
#D25694
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82