#8A6FD3#8A6FD3
#8A6FD3 is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.2% C 0.148 H 294.0°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6FD3 |
|---|---|
| RGB | rgb(138, 111, 211) |
| HSL | hsl(256, 53%, 63%) |
| HSV | hsv(256, 47%, 83%) |
| CMYK | cmyk(34.6%, 47.4%, 0%, 17.3%) |
| CIE-LAB | lab(53.47, 32.96, -48.02) |
| CIE-LCH | lch(53.47, 58.24, 304.46°) |
| OKLab | oklab(61.22% 0.0603 -0.1354) |
| OKLCH | oklch(61.22% 0.148 294) |
| XYZ | xyz(27.9205, 21.4748, 64.2894) |
| Luminance | 0.2147 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.05
Mediumslateblue
#7B68EE
ΔE00 5.62
Deep Lilac
#966EBD
ΔE00 5.71
Deep Lavender
#8D5EB7
ΔE00 7.37
Amethyst
#9B5FC0
ΔE00 7.40
Purpley
#8756E4
ΔE00 7.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6FD3 #B8D36F
analogous
#6F86D3 #8A6FD3 #BC6FD3
triadic
#8A6FD3 #D38A6F #6FD38A
tetradic
#8A6FD3 #D36F86 #B8D36F #6FD3BC
square
#8A6FD3 #D36F86 #B8D36F #6FD3BC
split-complementary
#8A6FD3 #D3BC6F #86D36F
monochromatic
#4B2F99 #6440C5 #8A6FD3 #B09EE1 #D6CDF0
Accessibility & contrast
On white
3.97
#8A6FD3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.29
#8A6FD3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6FD3
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6FD3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6FD3 | 1.00 | 3.97 | 5.29 | 5.29 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C81D7
Deuteranopia (green-blind)
#517ED1
Tritanopia (blue-blind)
#798297
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #8a6fd3; /* rgb */ color: rgb(138, 111, 211); /* oklch */ color: oklch(61.2% 0.148 294.0);
Tailwind
colors: {
custom: {
50: '#af99e1',
500: '#8a6fd3',
950: '#000000',
},
}SCSS
$custom: #8a6fd3; $custom-light: #af99e1; $custom-dark: #000000;
JSON
{
"hex": "#8a6fd3",
"rgb": {
"r": 138,
"g": 111,
"b": 211
},
"hsl": {
"h": 256.2,
"s": 53.191,
"l": 63.137
},
"oklch": {
"l": 0.6122,
"c": 0.14822,
"h": 294
},
"luminance": 0.21475
}Semantic roles & 50–950 ramp
primary
#8A6FD3
secondary
#D7E1BD
accent
#C12597
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83