#8A6FD2#8A6FD2
#8A6FD2 is a mid, vivid violet. Relative luminance 0.214; OKLCH L 61.2% C 0.147 H 294.2°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6FD2 |
|---|---|
| RGB | rgb(138, 111, 210) |
| HSL | hsl(256, 52%, 63%) |
| HSV | hsv(256, 47%, 82%) |
| CMYK | cmyk(34.3%, 47.1%, 0%, 17.6%) |
| CIE-LAB | lab(53.41, 32.69, -47.54) |
| CIE-LCH | lch(53.41, 57.69, 304.52°) |
| OKLab | oklab(61.16% 0.0602 -0.134) |
| OKLCH | oklch(61.16% 0.147 294.2) |
| XYZ | xyz(27.7956, 21.4248, 63.6312) |
| Luminance | 0.2142 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 2.13
Deep Lilac
#966EBD
ΔE00 5.57
Mediumslateblue
#7B68EE
ΔE00 5.77
Deep Lavender
#8D5EB7
ΔE00 7.25
Amethyst
#9B5FC0
ΔE00 7.31
Purpley
#8756E4
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6FD2 #B7D26F
analogous
#6F85D2 #8A6FD2 #BC6FD2
triadic
#8A6FD2 #D28A6F #6FD28A
tetradic
#8A6FD2 #D26F85 #B7D26F #6FD2BC
square
#8A6FD2 #D26F85 #B7D26F #6FD2BC
split-complementary
#8A6FD2 #D2BC6F #85D26F
monochromatic
#4C2F97 #6440C3 #8A6FD2 #B09EE1 #D6CCEF
Accessibility & contrast
On white
3.97
#8A6FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.28
#8A6FD2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6FD2
5.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6FD2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6FD2 | 1.00 | 3.97 | 5.28 | 5.28 |
| #FFFFFF | 3.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.28 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.28 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4D81D6
Deuteranopia (green-blind)
#517ED0
Tritanopia (blue-blind)
#798296
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #8a6fd2; /* rgb */ color: rgb(138, 111, 210); /* oklch */ color: oklch(61.2% 0.147 294.2);
Tailwind
colors: {
custom: {
50: '#af99e0',
500: '#8a6fd2',
950: '#000000',
},
}SCSS
$custom: #8a6fd2; $custom-light: #af99e0; $custom-dark: #000000;
JSON
{
"hex": "#8a6fd2",
"rgb": {
"r": 138,
"g": 111,
"b": 210
},
"hsl": {
"h": 256.364,
"s": 52.381,
"l": 62.941
},
"oklch": {
"l": 0.61162,
"c": 0.1469,
"h": 294.2
},
"luminance": 0.21425
}Semantic roles & 50–950 ramp
primary
#8A6FD2
secondary
#D6E0BD
accent
#C02696
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83