#A640B9#A640B9
#A640B9 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.198 H 321.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #A640B9 |
|---|---|
| RGB | rgb(166, 64, 185) |
| HSL | hsl(291, 49%, 49%) |
| HSV | hsv(291, 65%, 73%) |
| CMYK | cmyk(10.3%, 65.4%, 0%, 27.5%) |
| CIE-LAB | lab(46.01, 58.59, -44.72) |
| CIE-LCH | lch(46.01, 73.70, 322.65°) |
| OKLab | oklab(55.99% 0.1542 -0.1248) |
| OKLCH | oklch(55.99% 0.198 321) |
| XYZ | xyz(26.3152, 15.2779, 47.4523) |
| Luminance | 0.1528 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.85
Medium Purple
#9E43A2
ΔE00 4.05
Barney
#AC1DB8
ΔE00 4.28
Ugly Purple
#A442A0
ΔE00 4.62
Darkorchid
#9932CC
ΔE00 5.37
Purpley Pink
#C83CB9
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A640B9 #53B940
analogous
#6A40B9 #A640B9 #B94090
triadic
#A640B9 #B9A640 #40B9A6
tetradic
#A640B9 #B96A40 #53B940 #4090B9
square
#A640B9 #B96A40 #53B940 #4090B9
split-complementary
#A640B9 #90B940 #40B96A
monochromatic
#54215E #7D308C #A640B9 #BC6BCC #D198DB
Accessibility & contrast
On white
5.18
#A640B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#A640B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A640B9
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A640B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A640B9 | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E66BD
Deuteranopia (green-blind)
#4D71B6
Tritanopia (blue-blind)
#A75477
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #a640b9; /* rgb */ color: rgb(166, 64, 185); /* oklch */ color: oklch(56.0% 0.198 321.0);
Tailwind
colors: {
custom: {
50: '#c47cce',
500: '#a640b9',
950: '#000000',
},
}SCSS
$custom: #a640b9; $custom-light: #c47cce; $custom-dark: #000000;
JSON
{
"hex": "#a640b9",
"rgb": {
"r": 166,
"g": 64,
"b": 185
},
"hsl": {
"h": 290.579,
"s": 48.594,
"l": 48.824
},
"oklch": {
"l": 0.55988,
"c": 0.19835,
"h": 321
},
"luminance": 0.15277
}Semantic roles & 50–950 ramp
primary
#A640B9
secondary
#97C78E
accent
#D85065
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82