#A786EC#A786EC
#A786EC is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.3% C 0.149 H 297.3°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #A786EC |
|---|---|
| RGB | rgb(167, 134, 236) |
| HSL | hsl(259, 73%, 73%) |
| HSV | hsv(259, 43%, 93%) |
| CMYK | cmyk(29.2%, 43.2%, 0%, 7.5%) |
| CIE-LAB | lab(62.78, 33.87, -47.09) |
| CIE-LCH | lch(62.78, 58.01, 305.73°) |
| OKLab | oklab(69.27% 0.0681 -0.132) |
| OKLCH | oklch(69.27% 0.149 297.3) |
| XYZ | xyz(39.5981, 31.3214, 83.3000) |
| Luminance | 0.3132 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 5.60
Perrywinkle
#8F8CE7
ΔE00 6.01
Light Purple
#BF77F6
ΔE00 6.20
Periwinkle (survey)
#8E82FE
ΔE00 6.31
Light Urple
#B36FF6
ΔE00 6.59
Lavender Blue
#8B88F8
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A786EC #CBEC86
analogous
#8698EC #A786EC #DA86EC
triadic
#A786EC #ECA786 #86ECA7
tetradic
#A786EC #EC8698 #CBEC86 #86ECDA
square
#A786EC #EC8698 #CBEC86 #86ECDA
split-complementary
#A786EC #ECDA86 #98EC86
monochromatic
#5C22D6 #8151E4 #A786EC #CDBBF4 #ECE5FB
Accessibility & contrast
On white
2.89
#A786EC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.26
#A786EC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A786EC
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A786EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A786EC | 1.00 | 2.89 | 7.26 | 7.26 |
| #FFFFFF | 2.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6898F0
Deuteranopia (green-blind)
#6E97E9
Tritanopia (blue-blind)
#9998AE
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #a786ec; /* rgb */ color: rgb(167, 134, 236); /* oklch */ color: oklch(69.3% 0.149 297.3);
Tailwind
colors: {
custom: {
50: '#c3a9f2',
500: '#a786ec',
950: '#000000',
},
}SCSS
$custom: #a786ec; $custom-light: #c3a9f2; $custom-dark: #000000;
JSON
{
"hex": "#a786ec",
"rgb": {
"r": 167,
"g": 134,
"b": 236
},
"hsl": {
"h": 259.412,
"s": 72.857,
"l": 72.549
},
"oklch": {
"l": 0.69275,
"c": 0.14852,
"h": 297.3
},
"luminance": 0.31322
}Semantic roles & 50–950 ramp
primary
#A786EC
secondary
#EAF3D8
accent
#D51195
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85