#A640AB#A640AB
#A640AB is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.2% C 0.186 H 325.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #A640AB |
|---|---|
| RGB | rgb(166, 64, 171) |
| HSL | hsl(297, 46%, 46%) |
| HSV | hsv(297, 63%, 67%) |
| CMYK | cmyk(2.9%, 62.6%, 0%, 32.9%) |
| CIE-LAB | lab(45.24, 56.00, -37.71) |
| CIE-LCH | lch(45.24, 67.51, 326.04°) |
| OKLab | oklab(55.18% 0.1538 -0.1044) |
| OKLCH | oklch(55.18% 0.186 325.8) |
| XYZ | xyz(24.9094, 14.7156, 40.0485) |
| Luminance | 0.1471 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 1.91
Ugly Purple
#A442A0
ΔE00 2.11
Purply
#983FB2
ΔE00 3.66
Barney
#AC1DB8
ΔE00 4.75
Warm Purple
#952E8F
ΔE00 6.54
Purpley Pink
#C83CB9
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A640AB #45AB40
analogous
#7040AB #A640AB #AB407A
triadic
#A640AB #ABA640 #40ABA6
tetradic
#A640AB #AB7040 #45AB40 #407AAB
square
#A640AB #AB7040 #45AB40 #407AAB
split-complementary
#A640AB #7AAB40 #40AB70
monochromatic
#501F52 #7B2F7E #A640AB #C063C5 #D290D5
Accessibility & contrast
On white
5.33
#A640AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#A640AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A640AB
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A640AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A640AB | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F63AE
Deuteranopia (green-blind)
#5570A8
Tritanopia (blue-blind)
#AA4F70
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #a640ab; /* rgb */ color: rgb(166, 64, 171); /* oklch */ color: oklch(55.2% 0.186 325.8);
Tailwind
colors: {
custom: {
50: '#c37cc4',
500: '#a640ab',
950: '#000000',
},
}SCSS
$custom: #a640ab; $custom-light: #c37cc4; $custom-dark: #000000;
JSON
{
"hex": "#a640ab",
"rgb": {
"r": 166,
"g": 64,
"b": 171
},
"hsl": {
"h": 297.196,
"s": 45.532,
"l": 46.078
},
"oklch": {
"l": 0.55182,
"c": 0.18589,
"h": 325.8
},
"luminance": 0.14714
}Semantic roles & 50–950 ramp
primary
#A640AB
secondary
#89C186
accent
#D55359
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82