#AB42B2#AB42B2
#AB42B2 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.5% C 0.192 H 325.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).
Color values
| HEX | #AB42B2 |
|---|---|
| RGB | rgb(171, 66, 178) |
| HSL | hsl(296, 46%, 48%) |
| HSV | hsv(296, 63%, 70%) |
| CMYK | cmyk(3.9%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(46.67, 57.64, -39.52) |
| CIE-LCH | lch(46.67, 69.89, 325.56°) |
| OKLab | oklab(56.49% 0.1575 -0.1095) |
| OKLCH | oklch(56.49% 0.192 325.2) |
| XYZ | xyz(26.7781, 15.7703, 43.7444) |
| Luminance | 0.1577 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.26
Medium Purple
#9E43A2
ΔE00 3.29
Purply
#983FB2
ΔE00 4.24
Barney
#AC1DB8
ΔE00 5.06
Purpley Pink
#C83CB9
ΔE00 5.43
Pinky Purple
#C94CBE
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB42B2 #49B242
analogous
#7342B2 #AB42B2 #B24281
triadic
#AB42B2 #B2AB42 #42B2AB
tetradic
#AB42B2 #B27342 #49B242 #4281B2
square
#AB42B2 #B27342 #49B242 #4281B2
split-complementary
#AB42B2 #81B242 #42B273
monochromatic
#552159 #803185 #AB42B2 #C26AC8 #D496D8
Accessibility & contrast
On white
5.06
#AB42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.15
#AB42B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB42B2
5.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB42B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB42B2 | 1.00 | 5.06 | 4.15 | 5.06 |
| #FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#AF5274
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #ab42b2; /* rgb */ color: rgb(171, 66, 178); /* oklch */ color: oklch(56.5% 0.192 325.2);
Tailwind
colors: {
custom: {
50: '#c77ec9',
500: '#ab42b2',
950: '#000000',
},
}SCSS
$custom: #ab42b2; $custom-light: #c77ec9; $custom-dark: #000000;
JSON
{
"hex": "#ab42b2",
"rgb": {
"r": 171,
"g": 66,
"b": 178
},
"hsl": {
"h": 296.25,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.56489,
"c": 0.19186,
"h": 325.2
},
"luminance": 0.15769
}Semantic roles & 50–950 ramp
primary
#AB42B2
secondary
#8FC48C
accent
#D6525A
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#130A13
muted
#827C82