#A640B5#A640B5
#A640B5 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.195 H 322.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).
Color values
| HEX | #A640B5 |
|---|---|
| RGB | rgb(166, 64, 181) |
| HSL | hsl(292, 48%, 48%) |
| HSV | hsv(292, 65%, 71%) |
| CMYK | cmyk(8.3%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(45.79, 57.83, -42.73) |
| CIE-LCH | lch(45.79, 71.91, 323.54°) |
| OKLab | oklab(55.75% 0.1542 -0.119) |
| OKLCH | oklch(55.75% 0.195 322.3) |
| XYZ | xyz(25.8989, 15.1114, 45.2597) |
| Luminance | 0.1511 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.87
Medium Purple
#9E43A2
ΔE00 3.39
Ugly Purple
#A442A0
ΔE00 3.92
Barney
#AC1DB8
ΔE00 4.26
Darkorchid
#9932CC
ΔE00 5.89
Purpley Pink
#C83CB9
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A640B5 #4FB540
analogous
#6C40B5 #A640B5 #B54089
triadic
#A640B5 #B5A640 #40B5A6
tetradic
#A640B5 #B56C40 #4FB540 #4089B5
square
#A640B5 #B56C40 #4FB540 #4089B5
split-complementary
#A640B5 #89B540 #40B56C
monochromatic
#53205B #7D3088 #A640B5 #BD68CA #D196DA
Accessibility & contrast
On white
5.22
#A640B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.02
#A640B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A640B5
5.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A640B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A640B5 | 1.00 | 5.22 | 4.02 | 5.22 |
| #FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.02 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2465B8
Deuteranopia (green-blind)
#4F70B2
Tritanopia (blue-blind)
#A85375
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a640b5; /* rgb */ color: rgb(166, 64, 181); /* oklch */ color: oklch(55.8% 0.195 322.3);
Tailwind
colors: {
custom: {
50: '#c47ccc',
500: '#a640b5',
950: '#000000',
},
}SCSS
$custom: #a640b5; $custom-light: #c47ccc; $custom-dark: #000000;
JSON
{
"hex": "#a640b5",
"rgb": {
"r": 166,
"g": 64,
"b": 181
},
"hsl": {
"h": 292.308,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.55752,
"c": 0.19475,
"h": 322.3
},
"luminance": 0.1511
}Semantic roles & 50–950 ramp
primary
#A640B5
secondary
#93C58B
accent
#D75062
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82