#AB4AB2#AB4AB2
#AB4AB2 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.4% C 0.180 H 324.9°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #AB4AB2 |
|---|---|
| RGB | rgb(171, 74, 178) |
| HSL | hsl(296, 41%, 49%) |
| HSV | hsv(296, 58%, 70%) |
| CMYK | cmyk(3.9%, 58.4%, 0%, 30.2%) |
| CIE-LAB | lab(47.97, 54.07, -37.47) |
| CIE-LCH | lch(47.97, 65.79, 325.28°) |
| OKLab | oklab(57.43% 0.1476 -0.1037) |
| OKLCH | oklch(57.43% 0.18 324.9) |
| XYZ | xyz(27.2786, 16.7714, 43.9112) |
| Luminance | 0.1677 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.78
Medium Purple
#9E43A2
ΔE00 3.94
Purpley Pink
#C83CB9
ΔE00 5.10
Purply
#983FB2
ΔE00 5.27
Pinky Purple
#C94CBE
ΔE00 6.17
Amethyst
#9B5FC0
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB4AB2 #51B24A
analogous
#774AB2 #AB4AB2 #B24A85
triadic
#AB4AB2 #B2AB4A #4AB2AB
tetradic
#AB4AB2 #B2774A #51B24A #4A85B2
square
#AB4AB2 #B2774A #51B24A #4A85B2
split-complementary
#AB4AB2 #85B24A #4AB277
monochromatic
#58265C #813887 #AB4AB2 #C074C5 #D39FD7
Accessibility & contrast
On white
4.82
#AB4AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.35
#AB4AB2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB4AB2
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB4AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB4AB2 | 1.00 | 4.82 | 4.35 | 4.82 |
| #FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#AF5877
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #ab4ab2; /* rgb */ color: rgb(171, 74, 178); /* oklch */ color: oklch(57.4% 0.180 324.9);
Tailwind
colors: {
custom: {
50: '#c782c9',
500: '#ab4ab2',
950: '#000000',
},
}SCSS
$custom: #ab4ab2; $custom-light: #c782c9; $custom-dark: #000000;
JSON
{
"hex": "#ab4ab2",
"rgb": {
"r": 171,
"g": 74,
"b": 178
},
"hsl": {
"h": 295.962,
"s": 41.27,
"l": 49.412
},
"oklch": {
"l": 0.57434,
"c": 0.18038,
"h": 324.9
},
"luminance": 0.1677
}Semantic roles & 50–950 ramp
primary
#AB4AB2
secondary
#97C494
accent
#D1575F
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130B13
muted
#827C82