#AB41B2#AB41B2
#AB41B2 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.193 H 325.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #AB41B2 |
|---|---|
| RGB | rgb(171, 65, 178) |
| HSL | hsl(296, 47%, 48%) |
| HSV | hsv(296, 63%, 70%) |
| CMYK | cmyk(3.9%, 63.5%, 0%, 30.2%) |
| CIE-LAB | lab(46.52, 58.07, -39.77) |
| CIE-LCH | lch(46.52, 70.38, 325.60°) |
| OKLab | oklab(56.38% 0.1587 -0.1102) |
| OKLCH | oklch(56.38% 0.193 325.2) |
| XYZ | xyz(26.7202, 15.6545, 43.7251) |
| Luminance | 0.1565 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.25
Medium Purple
#9E43A2
ΔE00 3.26
Purply
#983FB2
ΔE00 4.14
Barney
#AC1DB8
ΔE00 4.88
Purpley Pink
#C83CB9
ΔE00 5.50
Darkorchid
#9932CC
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB41B2 #48B241
analogous
#7241B2 #AB41B2 #B24181
triadic
#AB41B2 #B2AB41 #41B2AB
tetradic
#AB41B2 #B27241 #48B241 #4181B2
square
#AB41B2 #B27241 #48B241 #4181B2
split-complementary
#AB41B2 #81B241 #41B272
monochromatic
#552058 #803185 #AB41B2 #C268C8 #D495D8
Accessibility & contrast
On white
5.08
#AB41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#AB41B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB41B2
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB41B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB41B2 | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#5673AF
Tritanopia (blue-blind)
#AF5174
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #ab41b2; /* rgb */ color: rgb(171, 65, 178); /* oklch */ color: oklch(56.4% 0.193 325.2);
Tailwind
colors: {
custom: {
50: '#c77dc9',
500: '#ab41b2',
950: '#000000',
},
}SCSS
$custom: #ab41b2; $custom-light: #c77dc9; $custom-dark: #000000;
JSON
{
"hex": "#ab41b2",
"rgb": {
"r": 171,
"g": 65,
"b": 178
},
"hsl": {
"h": 296.283,
"s": 46.502,
"l": 47.647
},
"oklch": {
"l": 0.56378,
"c": 0.19324,
"h": 325.2
},
"luminance": 0.15653
}Semantic roles & 50–950 ramp
primary
#AB41B2
secondary
#8EC48B
accent
#D6525A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82