#AB42AA#AB42AA
#AB42AA is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.1% C 0.185 H 328.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #AB42AA |
|---|---|
| RGB | rgb(171, 66, 170) |
| HSL | hsl(301, 44%, 46%) |
| HSV | hsv(301, 61%, 67%) |
| CMYK | cmyk(0%, 61.4%, 0.6%, 32.9%) |
| CIE-LAB | lab(46.26, 56.22, -35.47) |
| CIE-LCH | lch(46.26, 66.48, 327.76°) |
| OKLab | oklab(56.05% 0.157 -0.0978) |
| OKLCH | oklch(56.05% 0.185 328.1) |
| XYZ | xyz(25.9982, 15.4583, 39.6368) |
| Luminance | 0.1546 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.00
Medium Purple
#9E43A2
ΔE00 2.60
Purply
#983FB2
ΔE00 4.96
Purpley Pink
#C83CB9
ΔE00 5.49
Barney
#AC1DB8
ΔE00 5.62
Warm Purple
#952E8F
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB42AA #42AB43
analogous
#7842AB #AB42AA #AB4276
triadic
#AB42AA #AAAB42 #42AAAB
tetradic
#AB42AA #AB7842 #42AB43 #4276AB
square
#AB42AA #AB7842 #42AB43 #4276AB
split-complementary
#AB42AA #76AB42 #42AB78
monochromatic
#532052 #7F317E #AB42AA #C466C3 #D592D4
Accessibility & contrast
On white
5.13
#AB42AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#AB42AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB42AA
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB42AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB42AA | 1.00 | 5.13 | 4.09 | 5.13 |
| #FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3665AD
Deuteranopia (green-blind)
#5B72A7
Tritanopia (blue-blind)
#B04F70
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #ab42aa; /* rgb */ color: rgb(171, 66, 170); /* oklch */ color: oklch(56.1% 0.185 328.1);
Tailwind
colors: {
custom: {
50: '#c77dc3',
500: '#ab42aa',
950: '#000000',
},
}SCSS
$custom: #ab42aa; $custom-light: #c77dc3; $custom-dark: #000000;
JSON
{
"hex": "#ab42aa",
"rgb": {
"r": 171,
"g": 66,
"b": 170
},
"hsl": {
"h": 300.571,
"s": 44.304,
"l": 46.471
},
"oklch": {
"l": 0.56052,
"c": 0.18498,
"h": 328.1
},
"luminance": 0.15457
}Semantic roles & 50–950 ramp
primary
#AB42AA
secondary
#88C089
accent
#D45554
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81