#A640C6#A640C6
#A640C6 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.210 H 317.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #A640C6 |
|---|---|
| RGB | rgb(166, 64, 198) |
| HSL | hsl(286, 54%, 51%) |
| HSV | hsv(286, 68%, 78%) |
| CMYK | cmyk(16.2%, 67.7%, 0%, 22.4%) |
| CIE-LAB | lab(46.78, 61.10, -51.05) |
| CIE-LCH | lch(46.78, 79.62, 320.12°) |
| OKLab | oklab(56.79% 0.1538 -0.1433) |
| OKLCH | oklch(56.79% 0.21 317) |
| XYZ | xyz(27.7508, 15.8521, 55.0131) |
| Luminance | 0.1585 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.82
Darkorchid
#9932CC
ΔE00 4.21
Barney
#AC1DB8
ΔE00 5.05
Vibrant Purple
#AD03DE
ΔE00 5.55
Medium Purple
#9E43A2
ΔE00 6.15
Lightish Purple
#A552E6
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A640C6 #60C640
analogous
#6340C6 #A640C6 #C640A3
triadic
#A640C6 #C6A640 #40C6A6
tetradic
#A640C6 #C66340 #60C640 #40A3C6
square
#A640C6 #C66340 #60C640 #40A3C6
split-complementary
#A640C6 #A3C640 #40C663
monochromatic
#5A206C #812E9B #A640C6 #BC6FD4 #D29EE2
Accessibility & contrast
On white
5.04
#A640C6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#A640C6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A640C6
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A640C6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A640C6 | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0069CA
Deuteranopia (green-blind)
#4372C3
Tritanopia (blue-blind)
#A55A7E
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #a640c6; /* rgb */ color: rgb(166, 64, 198); /* oklch */ color: oklch(56.8% 0.210 317.0);
Tailwind
colors: {
custom: {
50: '#c47dd8',
500: '#a640c6',
950: '#000000',
},
}SCSS
$custom: #a640c6; $custom-light: #c47dd8; $custom-dark: #000000;
JSON
{
"hex": "#a640c6",
"rgb": {
"r": 166,
"g": 64,
"b": 198
},
"hsl": {
"h": 285.672,
"s": 54.032,
"l": 51.373
},
"oklch": {
"l": 0.56787,
"c": 0.21022,
"h": 317
},
"luminance": 0.15851
}Semantic roles & 50–950 ramp
primary
#A640C6
secondary
#A1CE93
accent
#DD4A6E
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83