#8A5CD1#8A5CD1
#8A5CD1 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.9% C 0.174 H 299.0°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5CD1 |
|---|---|
| RGB | rgb(138, 92, 209) |
| HSL | hsl(264, 56%, 59%) |
| HSV | hsv(264, 56%, 82%) |
| CMYK | cmyk(34%, 56%, 0%, 18%) |
| CIE-LAB | lab(49.08, 43.27, -53.88) |
| CIE-LCH | lch(49.08, 69.11, 308.77°) |
| OKLab | oklab(57.93% 0.0846 -0.1526) |
| OKLCH | oklch(57.93% 0.174 299) |
| XYZ | xyz(25.8142, 17.6608, 62.3581) |
| Luminance | 0.1766 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.26
Deep Lavender
#8D5EB7
ΔE00 4.91
Amethyst
#9B5FC0
ΔE00 5.42
Lightish Purple
#A552E6
ΔE00 5.55
Light Indigo
#6D5ACF
ΔE00 5.71
Mediumpurple
#9370DB
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5CD1 #A3D15C
analogous
#5C69D1 #8A5CD1 #C55CD1
triadic
#8A5CD1 #D18A5C #5CD18A
tetradic
#8A5CD1 #D15C69 #A3D15C #5CD1C5
square
#8A5CD1 #D15C69 #A3D15C #5CD1C5
split-complementary
#8A5CD1 #D1C55C #69D15C
monochromatic
#4F278B #6A35BB #8A5CD1 #AC8CDE #CFBBEC
Accessibility & contrast
On white
4.63
#8A5CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.53
#8A5CD1 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5CD1
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5CD1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5CD1 | 1.00 | 4.63 | 4.53 | 4.63 |
| #FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2775D5
Deuteranopia (green-blind)
#3874CE
Tritanopia (blue-blind)
#7B748E
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #8a5cd1; /* rgb */ color: rgb(138, 92, 209); /* oklch */ color: oklch(57.9% 0.174 299.0);
Tailwind
colors: {
custom: {
50: '#b08ce0',
500: '#8a5cd1',
950: '#000000',
},
}SCSS
$custom: #8a5cd1; $custom-light: #b08ce0; $custom-dark: #000000;
JSON
{
"hex": "#8a5cd1",
"rgb": {
"r": 138,
"g": 92,
"b": 209
},
"hsl": {
"h": 263.59,
"s": 55.981,
"l": 59.02
},
"oklch": {
"l": 0.57926,
"c": 0.17444,
"h": 299
},
"luminance": 0.17661
}Semantic roles & 50–950 ramp
primary
#8A5CD1
secondary
#C9DBAD
accent
#DF49A4
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83