#8A6FD4#8A6FD4
#8A6FD4 is a mid, vivid violet. Relative luminance 0.215; OKLCH L 61.3% C 0.150 H 293.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #8A6FD4 |
|---|---|
| RGB | rgb(138, 111, 212) |
| HSL | hsl(256, 54%, 63%) |
| HSV | hsv(256, 48%, 83%) |
| CMYK | cmyk(34.9%, 47.6%, 0%, 16.9%) |
| CIE-LAB | lab(53.52, 33.22, -48.50) |
| CIE-LCH | lch(53.52, 58.79, 304.41°) |
| OKLab | oklab(61.28% 0.0605 -0.1368) |
| OKLCH | oklch(61.28% 0.15 293.8) |
| XYZ | xyz(28.0463, 21.5251, 64.9517) |
| Luminance | 0.2153 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Mediumpurple
#9370DB
ΔE00 1.98
Mediumslateblue
#7B68EE
ΔE00 5.48
Deep Lilac
#966EBD
ΔE00 5.86
Purpley
#8756E4
ΔE00 7.43
Deep Lavender
#8D5EB7
ΔE00 7.48
Amethyst
#9B5FC0
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A6FD4 #B9D46F
analogous
#6F86D4 #8A6FD4 #BD6FD4
triadic
#8A6FD4 #D48A6F #6FD48A
tetradic
#8A6FD4 #D46F86 #B9D46F #6FD4BD
square
#8A6FD4 #D46F86 #B9D46F #6FD4BD
split-complementary
#8A6FD4 #D4BD6F #86D46F
monochromatic
#4B2E9A #6440C6 #8A6FD4 #B09EE2 #D7CDF0
Accessibility & contrast
On white
3.96
#8A6FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.31
#8A6FD4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #8A6FD4
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A6FD4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##8A6FD4 | 1.00 | 3.96 | 5.31 | 5.31 |
| #FFFFFF | 3.96 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B81D8
Deuteranopia (green-blind)
#507ED2
Tritanopia (blue-blind)
#788397
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #8a6fd4; /* rgb */ color: rgb(138, 111, 212); /* oklch */ color: oklch(61.3% 0.150 293.8);
Tailwind
colors: {
custom: {
50: '#af99e2',
500: '#8a6fd4',
950: '#000000',
},
}SCSS
$custom: #8a6fd4; $custom-light: #af99e2; $custom-dark: #000000;
JSON
{
"hex": "#8a6fd4",
"rgb": {
"r": 138,
"g": 111,
"b": 212
},
"hsl": {
"h": 256.04,
"s": 54.011,
"l": 63.333
},
"oklch": {
"l": 0.61279,
"c": 0.14956,
"h": 293.8
},
"luminance": 0.21526
}Semantic roles & 50–950 ramp
primary
#8A6FD4
secondary
#D8E1BD
accent
#C12497
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83