#A786F9#A786F9
#A786F9 is a light, vivid violet. Relative luminance 0.321; OKLCH L 70.0% C 0.165 H 295.0°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).
Color values
| HEX | #A786F9 |
|---|---|
| RGB | rgb(167, 134, 249) |
| HSL | hsl(257, 91%, 75%) |
| HSV | hsv(257, 46%, 98%) |
| CMYK | cmyk(32.9%, 46.2%, 0%, 2.4%) |
| CIE-LAB | lab(63.43, 37.12, -53.23) |
| CIE-LCH | lch(63.43, 64.90, 304.89°) |
| OKLab | oklab(69.98% 0.0699 -0.1499) |
| OKLCH | oklch(69.98% 0.165 295) |
| XYZ | xyz(41.5560, 32.1045, 93.6116) |
| Luminance | 0.3211 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 5.06
Liliac
#C48EFD
ΔE00 5.74
Lavender Blue
#8B88F8
ΔE00 5.87
Perrywinkle
#8F8CE7
ΔE00 6.02
Light Purple
#BF77F6
ΔE00 6.34
Light Urple
#B36FF6
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A786F9 #D8F986
analogous
#869FF9 #A786F9 #E086F9
triadic
#A786F9 #F9A786 #86F9A7
tetradic
#A786F9 #F9869F #D8F986 #86F9E0
square
#A786F9 #F9869F #D8F986 #86F9E0
split-complementary
#A786F9 #F9E086 #9FF986
monochromatic
#5211F3 #7D4CF6 #A786F9 #D1C0FC #EAE2FE
Accessibility & contrast
On white
2.83
#A786F9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.42
#A786F9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A786F9
7.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A786F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A786F9 | 1.00 | 2.83 | 7.42 | 7.42 |
| #FFFFFF | 2.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#609BFD
Deuteranopia (green-blind)
#6598F6
Tritanopia (blue-blind)
#949CB4
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #a786f9; /* rgb */ color: rgb(167, 134, 249); /* oklch */ color: oklch(70.0% 0.165 295.0);
Tailwind
colors: {
custom: {
50: '#c4aafc',
500: '#a786f9',
950: '#000000',
},
}SCSS
$custom: #a786f9; $custom-light: #c4aafc; $custom-dark: #000000;
JSON
{
"hex": "#a786f9",
"rgb": {
"r": 167,
"g": 134,
"b": 249
},
"hsl": {
"h": 257.217,
"s": 90.551,
"l": 75.098
},
"oklch": {
"l": 0.69977,
"c": 0.16537,
"h": 295
},
"luminance": 0.32105
}Semantic roles & 50–950 ramp
primary
#A786F9
secondary
#ECF6D5
accent
#E600A4
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85