#A787DF#A787DF
#A787DF is a light, vivid violet. Relative luminance 0.309; OKLCH L 68.8% C 0.130 H 299.7°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #A787DF |
|---|---|
| RGB | rgb(167, 135, 223) |
| HSL | hsl(262, 58%, 70%) |
| HSV | hsv(262, 39%, 87%) |
| CMYK | cmyk(25.1%, 39.5%, 0%, 12.5%) |
| CIE-LAB | lab(62.40, 30.15, -40.48) |
| CIE-LCH | lch(62.40, 50.47, 306.68°) |
| OKLab | oklab(68.79% 0.0645 -0.1128) |
| OKLCH | oklch(68.79% 0.13 299.7) |
| XYZ | xyz(37.9166, 30.8710, 73.7588) |
| Luminance | 0.3087 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Purple
#B790D4
ΔE00 5.79
Liliac
#C48EFD
ΔE00 6.23
Wisteria
#A87DC2
ΔE00 6.29
Perrywinkle
#8F8CE7
ΔE00 6.70
Light Purple
#BF77F6
ΔE00 7.03
Lavender
#B39DDB
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A787DF #BFDF87
analogous
#8793DF #A787DF #D387DF
triadic
#A787DF #DFA787 #87DFA7
tetradic
#A787DF #DF8793 #BFDF87 #87DFD3
square
#A787DF #DF8793 #BFDF87 #87DFD3
split-complementary
#A787DF #DFD387 #93DF87
monochromatic
#6332BA #8457D2 #A787DF #CAB7EC #EDE7F9
Accessibility & contrast
On white
2.93
#A787DF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.17
#A787DF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A787DF
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A787DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A787DF | 1.00 | 2.93 | 7.17 | 7.17 |
| #FFFFFF | 2.93 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7097E2
Deuteranopia (green-blind)
#7696DD
Tritanopia (blue-blind)
#9C96A8
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #a787df; /* rgb */ color: rgb(167, 135, 223); /* oklch */ color: oklch(68.8% 0.130 299.7);
Tailwind
colors: {
custom: {
50: '#c3aae9',
500: '#a787df',
950: '#000000',
},
}SCSS
$custom: #a787df; $custom-light: #c3aae9; $custom-dark: #000000;
JSON
{
"hex": "#a787df",
"rgb": {
"r": 167,
"g": 135,
"b": 223
},
"hsl": {
"h": 261.818,
"s": 57.895,
"l": 70.196
},
"oklch": {
"l": 0.68788,
"c": 0.12992,
"h": 299.7
},
"luminance": 0.30871
}Semantic roles & 50–950 ramp
primary
#A787DF
secondary
#E4EDD5
accent
#C52089
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84