#A640B1#A640B1
#A640B1 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.191 H 323.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).
Color values
| HEX | #A640B1 |
|---|---|
| RGB | rgb(166, 64, 177) |
| HSL | hsl(294, 47%, 47%) |
| HSV | hsv(294, 64%, 69%) |
| CMYK | cmyk(6.2%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(45.56, 57.09, -40.73) |
| CIE-LCH | lch(45.56, 70.13, 324.49°) |
| OKLab | oklab(55.52% 0.1541 -0.1132) |
| OKLCH | oklch(55.52% 0.191 323.7) |
| XYZ | xyz(25.4944, 14.9495, 43.1291) |
| Luminance | 0.1495 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 2.76
Purply
#983FB2
ΔE00 3.07
Ugly Purple
#A442A0
ΔE00 3.20
Barney
#AC1DB8
ΔE00 4.36
Darkorchid
#9932CC
ΔE00 6.45
Purpley Pink
#C83CB9
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A640B1 #4BB140
analogous
#6D40B1 #A640B1 #B14084
triadic
#A640B1 #B1A640 #40B1A6
tetradic
#A640B1 #B16D40 #4BB140 #4084B1
square
#A640B1 #B16D40 #4BB140 #4084B1
split-complementary
#A640B1 #84B140 #40B16D
monochromatic
#521F57 #7C3084 #A640B1 #BE66C8 #D193D8
Accessibility & contrast
On white
5.26
#A640B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.99
#A640B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A640B1
5.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A640B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A640B1 | 1.00 | 5.26 | 3.99 | 5.26 |
| #FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2964B4
Deuteranopia (green-blind)
#5270AE
Tritanopia (blue-blind)
#A95173
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #a640b1; /* rgb */ color: rgb(166, 64, 177); /* oklch */ color: oklch(55.5% 0.191 323.7);
Tailwind
colors: {
custom: {
50: '#c37cc9',
500: '#a640b1',
950: '#000000',
},
}SCSS
$custom: #a640b1; $custom-light: #c37cc9; $custom-dark: #000000;
JSON
{
"hex": "#a640b1",
"rgb": {
"r": 166,
"g": 64,
"b": 177
},
"hsl": {
"h": 294.159,
"s": 46.888,
"l": 47.255
},
"oklch": {
"l": 0.5552,
"c": 0.19118,
"h": 323.7
},
"luminance": 0.14948
}Semantic roles & 50–950 ramp
primary
#A640B1
secondary
#8FC389
accent
#D7515E
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82