#AB42BB#AB42BB
#AB42BB is a mid, vivid purple. Relative luminance 0.161; OKLCH L 57.0% C 0.200 H 322.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).
Color values
| HEX | #AB42BB |
|---|---|
| RGB | rgb(171, 66, 187) |
| HSL | hsl(292, 48%, 50%) |
| HSV | hsv(292, 65%, 73%) |
| CMYK | cmyk(8.6%, 64.7%, 0%, 26.7%) |
| CIE-LAB | lab(47.16, 59.29, -44.01) |
| CIE-LCH | lch(47.16, 73.84, 323.42°) |
| OKLab | oklab(57% 0.1578 -0.1226) |
| OKLCH | oklch(57% 0.2 322.1) |
| XYZ | xyz(27.7115, 16.1437, 48.6605) |
| Luminance | 0.1614 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.02
Medium Purple
#9E43A2
ΔE00 4.52
Ugly Purple
#A442A0
ΔE00 4.79
Barney
#AC1DB8
ΔE00 4.96
Purpley Pink
#C83CB9
ΔE00 5.77
Darkorchid
#9932CC
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB42BB #52BB42
analogous
#6F42BB #AB42BB #BB428F
triadic
#AB42BB #BBAB42 #42BBAB
tetradic
#AB42BB #BB6F42 #52BB42 #428FBB
square
#AB42BB #BB6F42 #52BB42 #428FBB
split-complementary
#AB42BB #8FBB42 #42BB6F
monochromatic
#582261 #82328E #AB42BB #C06ECC #D39CDC
Accessibility & contrast
On white
4.97
#AB42BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.23
#AB42BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB42BB
4.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB42BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB42BB | 1.00 | 4.97 | 4.23 | 4.97 |
| #FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2468BF
Deuteranopia (green-blind)
#5174B8
Tritanopia (blue-blind)
#AD5679
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #ab42bb; /* rgb */ color: rgb(171, 66, 187); /* oklch */ color: oklch(57.0% 0.200 322.1);
Tailwind
colors: {
custom: {
50: '#c77ed0',
500: '#ab42bb',
950: '#000000',
},
}SCSS
$custom: #ab42bb; $custom-light: #c77ed0; $custom-dark: #000000;
JSON
{
"hex": "#ab42bb",
"rgb": {
"r": 171,
"g": 66,
"b": 187
},
"hsl": {
"h": 292.066,
"s": 47.826,
"l": 49.608
},
"oklch": {
"l": 0.57003,
"c": 0.19981,
"h": 322.1
},
"luminance": 0.16142
}Semantic roles & 50–950 ramp
primary
#AB42BB
secondary
#98C891
accent
#D75062
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#130A14
muted
#827C82