#A786F8#A786F8
#A786F8 is a light, vivid violet. Relative luminance 0.320; OKLCH L 69.9% C 0.164 H 295.2°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).
Color values
| HEX | #A786F8 |
|---|---|
| RGB | rgb(167, 134, 248) |
| HSL | hsl(257, 89%, 75%) |
| HSV | hsv(257, 46%, 97%) |
| CMYK | cmyk(32.7%, 46%, 0%, 2.7%) |
| CIE-LAB | lab(63.38, 36.87, -52.76) |
| CIE-LCH | lch(63.38, 64.37, 304.95°) |
| OKLab | oklab(69.92% 0.0698 -0.1485) |
| OKLCH | oklch(69.92% 0.164 295.2) |
| XYZ | xyz(41.4005, 32.0423, 92.7923) |
| Luminance | 0.3204 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 5.13
Liliac
#C48EFD
ΔE00 5.70
Lavender Blue
#8B88F8
ΔE00 5.92
Perrywinkle
#8F8CE7
ΔE00 6.00
Light Purple
#BF77F6
ΔE00 6.31
Light Urple
#B36FF6
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A786F8 #D7F886
analogous
#869EF8 #A786F8 #E086F8
triadic
#A786F8 #F8A786 #86F8A7
tetradic
#A786F8 #F8869E #D7F886 #86F8E0
square
#A786F8 #F8869E #D7F886 #86F8E0
split-complementary
#A786F8 #F8E086 #9EF886
monochromatic
#5312F1 #7D4CF5 #A786F8 #D1C0FB #EAE2FD
Accessibility & contrast
On white
2.83
#A786F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.41
#A786F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A786F8
7.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A786F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A786F8 | 1.00 | 2.83 | 7.41 | 7.41 |
| #FFFFFF | 2.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#609AFC
Deuteranopia (green-blind)
#6698F5
Tritanopia (blue-blind)
#959CB3
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #a786f8; /* rgb */ color: rgb(167, 134, 248); /* oklch */ color: oklch(69.9% 0.164 295.2);
Tailwind
colors: {
custom: {
50: '#c4aafb',
500: '#a786f8',
950: '#000000',
},
}SCSS
$custom: #a786f8; $custom-light: #c4aafb; $custom-dark: #000000;
JSON
{
"hex": "#a786f8",
"rgb": {
"r": 167,
"g": 134,
"b": 248
},
"hsl": {
"h": 257.368,
"s": 89.063,
"l": 74.902
},
"oklch": {
"l": 0.69922,
"c": 0.16408,
"h": 295.2
},
"luminance": 0.32043
}Semantic roles & 50–950 ramp
primary
#A786F8
secondary
#ECF5D6
accent
#E600A3
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85