#8A5ED1#8A5ED1
#8A5ED1 is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.2% C 0.171 H 298.6°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5ED1 |
|---|---|
| RGB | rgb(138, 94, 209) |
| HSL | hsl(263, 56%, 59%) |
| HSV | hsv(263, 55%, 82%) |
| CMYK | cmyk(34%, 55%, 0%, 18%) |
| CIE-LAB | lab(49.51, 42.16, -53.19) |
| CIE-LCH | lch(49.51, 67.87, 308.40°) |
| OKLab | oklab(58.24% 0.0821 -0.1505) |
| OKLCH | oklch(58.24% 0.171 298.6) |
| XYZ | xyz(25.9897, 18.0119, 62.4166) |
| Luminance | 0.1801 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.53
Deep Lavender
#8D5EB7
ΔE00 4.89
Amethyst
#9B5FC0
ΔE00 5.35
Mediumpurple
#9370DB
ΔE00 5.70
Lightish Purple
#A552E6
ΔE00 5.71
Light Indigo
#6D5ACF
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5ED1 #A5D15E
analogous
#5E6BD1 #8A5ED1 #C45ED1
triadic
#8A5ED1 #D18A5E #5ED18A
tetradic
#8A5ED1 #D15E6B #A5D15E #5ED1C4
square
#8A5ED1 #D15E6B #A5D15E #5ED1C4
split-complementary
#8A5ED1 #D1C45E #6BD15E
monochromatic
#4F288C #6936BC #8A5ED1 #AD8EDF #CFBDEC
Accessibility & contrast
On white
4.56
#8A5ED1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.60
#8A5ED1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A5ED1
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5ED1 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A5ED1 | 1.00 | 4.56 | 4.60 | 4.60 |
| #FFFFFF | 4.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D76D5
Deuteranopia (green-blind)
#3B75CE
Tritanopia (blue-blind)
#7B758E
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #8a5ed1; /* rgb */ color: rgb(138, 94, 209); /* oklch */ color: oklch(58.2% 0.171 298.6);
Tailwind
colors: {
custom: {
50: '#b08de0',
500: '#8a5ed1',
950: '#000000',
},
}SCSS
$custom: #8a5ed1; $custom-light: #b08de0; $custom-dark: #000000;
JSON
{
"hex": "#8a5ed1",
"rgb": {
"r": 138,
"g": 94,
"b": 209
},
"hsl": {
"h": 262.957,
"s": 55.556,
"l": 59.412
},
"oklch": {
"l": 0.58241,
"c": 0.17147,
"h": 298.6
},
"luminance": 0.18012
}Semantic roles & 50–950 ramp
primary
#8A5ED1
secondary
#CBDCAF
accent
#DF49A6
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83