#8A6CD3#8A6CD3
#8A6CD3 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 60.7% C 0.153 H 294.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6CD3 |
|---|---|
| RGB | rgb(138, 108, 211) |
| HSL | hsl(257, 54%, 63%) |
| HSV | hsv(257, 49%, 83%) |
| CMYK | cmyk(34.6%, 48.8%, 0%, 17.3%) |
| CIE-LAB | lab(52.76, 34.70, -49.13) |
| CIE-LCH | lch(52.76, 60.15, 305.23°) |
| OKLab | oklab(60.7% 0.0643 -0.1387) |
| OKLCH | oklch(60.7% 0.153 294.9) |
| XYZ | xyz(27.5987, 20.8311, 64.1821) |
| Luminance | 0.2083 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.28
Mediumslateblue
#7B68EE
ΔE00 5.38
Deep Lilac
#966EBD
ΔE00 5.73
Purpley
#8756E4
ΔE00 6.63
Deep Lavender
#8D5EB7
ΔE00 6.73
Amethyst
#9B5FC0
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6CD3 #B5D36C
analogous
#6C81D3 #8A6CD3 #BE6CD3
triadic
#8A6CD3 #D38A6C #6CD38A
tetradic
#8A6CD3 #D36C81 #B5D36C #6CD3BE
square
#8A6CD3 #D36C81 #B5D36C #6CD3BE
split-complementary
#8A6CD3 #D3BE6C #81D36C
monochromatic
#4C2D97 #653DC5 #8A6CD3 #AF9BE1 #D5CAEF
Accessibility & contrast
On white
4.06
#8A6CD3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#8A6CD3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6CD3
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6CD3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6CD3 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#477FD7
Deuteranopia (green-blind)
#4D7CD1
Tritanopia (blue-blind)
#798096
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #8a6cd3; /* rgb */ color: rgb(138, 108, 211); /* oklch */ color: oklch(60.7% 0.153 294.9);
Tailwind
colors: {
custom: {
50: '#af96e1',
500: '#8a6cd3',
950: '#000000',
},
}SCSS
$custom: #8a6cd3; $custom-light: #af96e1; $custom-dark: #000000;
JSON
{
"hex": "#8a6cd3",
"rgb": {
"r": 138,
"g": 108,
"b": 211
},
"hsl": {
"h": 257.476,
"s": 53.927,
"l": 62.549
},
"oklch": {
"l": 0.60695,
"c": 0.15283,
"h": 294.9
},
"luminance": 0.20832
}Semantic roles & 50–950 ramp
primary
#8A6CD3
secondary
#D5E0BB
accent
#C12494
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110D15
muted
#807E83