#8A5DC6#8A5DC6
#8A5DC6 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.4% C 0.159 H 301.3°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).
Color values
| HEX | #8A5DC6 |
|---|---|
| RGB | rgb(138, 93, 198) |
| HSL | hsl(266, 48%, 57%) |
| HSV | hsv(266, 53%, 78%) |
| CMYK | cmyk(30.3%, 53%, 0%, 22.4%) |
| CIE-LAB | lab(48.65, 39.93, -48.26) |
| CIE-LCH | lch(48.65, 62.64, 309.60°) |
| OKLab | oklab(57.4% 0.0829 -0.1361) |
| OKLCH | oklch(57.4% 0.159 301.3) |
| XYZ | xyz(24.5863, 17.3091, 55.4608) |
| Luminance | 0.1731 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 3.10
Amethyst
#9B5FC0
ΔE00 4.27
Purpley
#8756E4
ΔE00 5.04
Light Indigo
#6D5ACF
ΔE00 6.36
Royal Purple
#7851A9
ΔE00 6.45
Lightish Purple
#A552E6
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A5DC6 #99C65D
analogous
#5D65C6 #8A5DC6 #BE5DC6
triadic
#8A5DC6 #C68A5D #5DC68A
tetradic
#8A5DC6 #C65D65 #99C65D #5DC6BE
square
#8A5DC6 #C65D65 #99C65D #5DC6BE
split-complementary
#8A5DC6 #C6BE5D #65C65D
monochromatic
#4F2C7D #6B3CAA #8A5DC6 #AB8AD6 #CBB8E6
Accessibility & contrast
On white
4.71
#8A5DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#8A5DC6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A5DC6
4.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A5DC6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A5DC6 | 1.00 | 4.71 | 4.46 | 4.71 |
| #FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3773CA
Deuteranopia (green-blind)
#4573C3
Tritanopia (blue-blind)
#7E7189
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #8a5dc6; /* rgb */ color: rgb(138, 93, 198); /* oklch */ color: oklch(57.4% 0.159 301.3);
Tailwind
colors: {
custom: {
50: '#af8cd8',
500: '#8a5dc6',
950: '#000000',
},
}SCSS
$custom: #8a5dc6; $custom-light: #af8cd8; $custom-dark: #000000;
JSON
{
"hex": "#8a5dc6",
"rgb": {
"r": 138,
"g": 93,
"b": 198
},
"hsl": {
"h": 265.714,
"s": 47.945,
"l": 57.059
},
"oklch": {
"l": 0.57395,
"c": 0.15935,
"h": 301.3
},
"luminance": 0.17309
}Semantic roles & 50–950 ramp
primary
#8A5DC6
secondary
#C2D5AA
accent
#D8509E
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83