#A787DC#A787DC
#A787DC is a light, vivid violet. Relative luminance 0.307; OKLCH L 68.6% C 0.126 H 300.5°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).
Color values
| HEX | #A787DC |
|---|---|
| RGB | rgb(167, 135, 220) |
| HSL | hsl(263, 55%, 70%) |
| HSV | hsv(263, 39%, 86%) |
| CMYK | cmyk(24.1%, 38.6%, 0%, 13.7%) |
| CIE-LAB | lab(62.26, 29.43, -39.02) |
| CIE-LCH | lch(62.26, 48.88, 307.03°) |
| OKLab | oklab(68.64% 0.0639 -0.1086) |
| OKLCH | oklch(68.64% 0.126 300.5) |
| XYZ | xyz(37.5157, 30.7106, 71.6476) |
| Luminance | 0.3071 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Purple
#B790D4
ΔE00 5.37
Wisteria
#A87DC2
ΔE00 5.79
Liliac
#C48EFD
ΔE00 6.51
Lavender
#B39DDB
ΔE00 7.00
Perrywinkle
#8F8CE7
ΔE00 7.01
Light Purple
#BF77F6
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A787DC #BCDC87
analogous
#8792DC #A787DC #D287DC
triadic
#A787DC #DCA787 #87DCA7
tetradic
#A787DC #DC8792 #BCDC87 #87DCD2
square
#A787DC #DC8792 #BCDC87 #87DCD2
split-complementary
#A787DC #DCD287 #92DC87
monochromatic
#6535B4 #8458CE #A787DC #CAB6EA #ECE6F8
Accessibility & contrast
On white
2.94
#A787DC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.14
#A787DC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A787DC
7.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A787DC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A787DC | 1.00 | 2.94 | 7.14 | 7.14 |
| #FFFFFF | 2.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7296DF
Deuteranopia (green-blind)
#7896DA
Tritanopia (blue-blind)
#9D95A7
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #a787dc; /* rgb */ color: rgb(167, 135, 220); /* oklch */ color: oklch(68.6% 0.126 300.5);
Tailwind
colors: {
custom: {
50: '#c2aae7',
500: '#a787dc',
950: '#000000',
},
}SCSS
$custom: #a787dc; $custom-light: #c2aae7; $custom-dark: #000000;
JSON
{
"hex": "#a787dc",
"rgb": {
"r": 167,
"g": 135,
"b": 220
},
"hsl": {
"h": 262.588,
"s": 54.839,
"l": 69.608
},
"oklch": {
"l": 0.6864,
"c": 0.12598,
"h": 300.5
},
"luminance": 0.30711
}Semantic roles & 50–950 ramp
primary
#A787DC
secondary
#E2ECD3
accent
#C22386
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84