#A640B2#A640B2
#A640B2 is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.192 H 323.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #A640B2 |
|---|---|
| RGB | rgb(166, 64, 178) |
| HSL | hsl(294, 47%, 47%) |
| HSV | hsv(294, 64%, 70%) |
| CMYK | cmyk(6.7%, 64%, 0%, 30.2%) |
| CIE-LAB | lab(45.62, 57.28, -41.24) |
| CIE-LCH | lch(45.62, 70.58, 324.25°) |
| OKLab | oklab(55.58% 0.1541 -0.1146) |
| OKLCH | oklch(55.58% 0.192 323.4) |
| XYZ | xyz(25.5944, 14.9896, 43.6560) |
| Luminance | 0.1499 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.92
Purply
#983FB2
ΔE00 3.00
Ugly Purple
#A442A0
ΔE00 3.38
Barney
#AC1DB8
ΔE00 4.32
Darkorchid
#9932CC
ΔE00 6.31
Purpley Pink
#C83CB9
ΔE00 6.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A640B2 #4CB240
analogous
#6D40B2 #A640B2 #B24085
triadic
#A640B2 #B2A640 #40B2A6
tetradic
#A640B2 #B26D40 #4CB240 #4085B2
square
#A640B2 #B26D40 #4CB240 #4085B2
split-complementary
#A640B2 #85B240 #40B26D
monochromatic
#522058 #7C3085 #A640B2 #BE67C8 #D194D8
Accessibility & contrast
On white
5.25
#A640B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.00
#A640B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A640B2
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A640B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A640B2 | 1.00 | 5.25 | 4.00 | 5.25 |
| #FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#5170AF
Tritanopia (blue-blind)
#A95273
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a640b2; /* rgb */ color: rgb(166, 64, 178); /* oklch */ color: oklch(55.6% 0.192 323.4);
Tailwind
colors: {
custom: {
50: '#c37cc9',
500: '#a640b2',
950: '#000000',
},
}SCSS
$custom: #a640b2; $custom-light: #c37cc9; $custom-dark: #000000;
JSON
{
"hex": "#a640b2",
"rgb": {
"r": 166,
"g": 64,
"b": 178
},
"hsl": {
"h": 293.684,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.55578,
"c": 0.19207,
"h": 323.4
},
"luminance": 0.14988
}Semantic roles & 50–950 ramp
primary
#A640B2
secondary
#90C48A
accent
#D7515F
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82