#A640A9#A640A9
#A640A9 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.1% C 0.184 H 326.6°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).
Color values
| HEX | #A640A9 |
|---|---|
| RGB | rgb(166, 64, 169) |
| HSL | hsl(298, 45%, 46%) |
| HSV | hsv(298, 62%, 66%) |
| CMYK | cmyk(1.8%, 62.1%, 0%, 33.7%) |
| CIE-LAB | lab(45.14, 55.64, -36.69) |
| CIE-LCH | lch(45.14, 66.65, 326.60°) |
| OKLab | oklab(55.07% 0.1537 -0.1014) |
| OKLCH | oklch(55.07% 0.184 326.6) |
| XYZ | xyz(24.7203, 14.6399, 39.0522) |
| Luminance | 0.1464 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 1.70
Ugly Purple
#A442A0
ΔE00 1.73
Purply
#983FB2
ΔE00 3.92
Barney
#AC1DB8
ΔE00 4.93
Warm Purple
#952E8F
ΔE00 6.33
Purpley Pink
#C83CB9
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A640A9 #43A940
analogous
#7140A9 #A640A9 #A94077
triadic
#A640A9 #A9A640 #40A9A6
tetradic
#A640A9 #A97140 #43A940 #4077A9
square
#A640A9 #A97140 #43A940 #4077A9
split-complementary
#A640A9 #77A940 #40A971
monochromatic
#4F1E50 #7A2F7D #A640A9 #C162C4 #D38FD5
Accessibility & contrast
On white
5.35
#A640A9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.93
#A640A9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A640A9
5.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A640A9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A640A9 | 1.00 | 5.35 | 3.93 | 5.35 |
| #FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3162AC
Deuteranopia (green-blind)
#566FA6
Tritanopia (blue-blind)
#AA4E6F
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a640a9; /* rgb */ color: rgb(166, 64, 169); /* oklch */ color: oklch(55.1% 0.184 326.6);
Tailwind
colors: {
custom: {
50: '#c37cc3',
500: '#a640a9',
950: '#000000',
},
}SCSS
$custom: #a640a9; $custom-light: #c37cc3; $custom-dark: #000000;
JSON
{
"hex": "#a640a9",
"rgb": {
"r": 166,
"g": 64,
"b": 169
},
"hsl": {
"h": 298.286,
"s": 45.064,
"l": 45.686
},
"oklch": {
"l": 0.55071,
"c": 0.18415,
"h": 326.6
},
"luminance": 0.14638
}Semantic roles & 50–950 ramp
primary
#A640A9
secondary
#87C085
accent
#D55357
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81