#8A59CB#8A59CB
#8A59CB is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.1% C 0.172 H 300.9°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).
Color values
| HEX | #8A59CB |
|---|---|
| RGB | rgb(138, 89, 203) |
| HSL | hsl(266, 52%, 57%) |
| HSV | hsv(266, 56%, 80%) |
| CMYK | cmyk(32%, 56.2%, 0%, 20.4%) |
| CIE-LAB | lab(48.08, 43.42, -52.04) |
| CIE-LCH | lch(48.08, 67.77, 309.84°) |
| OKLab | oklab(57.07% 0.0882 -0.1472) |
| OKLCH | oklch(57.07% 0.172 300.9) |
| XYZ | xyz(24.8306, 16.8597, 58.4344) |
| Luminance | 0.1686 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.95
Deep Lavender
#8D5EB7
ΔE00 4.18
Amethyst
#9B5FC0
ΔE00 5.04
Lightish Purple
#A552E6
ΔE00 5.86
Light Indigo
#6D5ACF
ΔE00 5.93
Slate Blue
#6A5ACD
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A59CB #9ACB59
analogous
#5961CB #8A59CB #C359CB
triadic
#8A59CB #CB8A59 #59CB8A
tetradic
#8A59CB #CB5961 #9ACB59 #59CBC3
square
#8A59CB #CB5961 #9ACB59 #59CBC3
split-complementary
#8A59CB #CBC359 #61CB59
monochromatic
#4F2881 #6B37B0 #8A59CB #AB88DA #CCB6E8
Accessibility & contrast
On white
4.80
#8A59CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.37
#8A59CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A59CB
4.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A59CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A59CB | 1.00 | 4.80 | 4.37 | 4.80 |
| #FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2872CF
Deuteranopia (green-blind)
#3B71C8
Tritanopia (blue-blind)
#7D7089
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #8a59cb; /* rgb */ color: rgb(138, 89, 203); /* oklch */ color: oklch(57.1% 0.172 300.9);
Tailwind
colors: {
custom: {
50: '#b08adb',
500: '#8a59cb',
950: '#000000',
},
}SCSS
$custom: #8a59cb; $custom-light: #b08adb; $custom-dark: #000000;
JSON
{
"hex": "#8a59cb",
"rgb": {
"r": 138,
"g": 89,
"b": 203
},
"hsl": {
"h": 265.789,
"s": 52.294,
"l": 57.255
},
"oklch": {
"l": 0.57074,
"c": 0.1716,
"h": 300.9
},
"luminance": 0.1686
}Semantic roles & 50–950 ramp
primary
#8A59CB
secondary
#C3D7A9
accent
#DC4C9E
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83