#AB47A2#AB47A2
#AB47A2 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.2% C 0.171 H 331.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AB47A2 |
|---|---|
| RGB | rgb(171, 71, 162) |
| HSL | hsl(305, 41%, 47%) |
| HSV | hsv(305, 58%, 67%) |
| CMYK | cmyk(0%, 58.5%, 5.3%, 32.9%) |
| CIE-LAB | lab(46.68, 52.61, -30.07) |
| CIE-LCH | lch(46.68, 60.60, 330.25°) |
| OKLab | oklab(56.23% 0.1498 -0.0823) |
| OKLCH | oklch(56.23% 0.171 331.2) |
| XYZ | xyz(25.5693, 15.7748, 35.8735) |
| Luminance | 0.1577 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.07
Medium Purple
#9E43A2
ΔE00 3.26
Purpley Pink
#C83CB9
ΔE00 5.77
Purpleish
#98568D
ΔE00 6.34
Purply
#983FB2
ΔE00 6.59
Purplish
#94568C
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB47A2 #47AB50
analogous
#8247AB #AB47A2 #AB4770
triadic
#AB47A2 #A2AB47 #47A2AB
tetradic
#AB47A2 #AB8247 #47AB50 #4770AB
square
#AB47A2 #AB8247 #47AB50 #4770AB
split-complementary
#AB47A2 #70AB47 #47AB82
monochromatic
#552350 #803579 #AB47A2 #C26DBB #D498CF
Accessibility & contrast
On white
5.05
#AB47A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#AB47A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB47A2
5.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB47A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB47A2 | 1.00 | 5.05 | 4.15 | 5.05 |
| #FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4266A5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#B1506E
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #ab47a2; /* rgb */ color: rgb(171, 71, 162); /* oklch */ color: oklch(56.2% 0.171 331.2);
Tailwind
colors: {
custom: {
50: '#c780be',
500: '#ab47a2',
950: '#000000',
},
}SCSS
$custom: #ab47a2; $custom-light: #c780be; $custom-dark: #000000;
JSON
{
"hex": "#ab47a2",
"rgb": {
"r": 171,
"g": 71,
"b": 162
},
"hsl": {
"h": 305.4,
"s": 41.322,
"l": 47.451
},
"oklch": {
"l": 0.56233,
"c": 0.17089,
"h": 331.2
},
"luminance": 0.15773
}Semantic roles & 50–950 ramp
primary
#AB47A2
secondary
#8DC092
accent
#D16257
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B12
muted
#827C81