#AB40B1#AB40B1
#AB40B1 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.194 H 325.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #AB40B1 |
|---|---|
| RGB | rgb(171, 64, 177) |
| HSL | hsl(297, 47%, 47%) |
| HSV | hsv(297, 64%, 69%) |
| CMYK | cmyk(3.4%, 63.8%, 0%, 30.6%) |
| CIE-LAB | lab(46.31, 58.31, -39.50) |
| CIE-LCH | lch(46.31, 70.43, 325.89°) |
| OKLab | oklab(56.21% 0.1598 -0.1095) |
| OKLCH | oklch(56.21% 0.194 325.6) |
| XYZ | xyz(26.5632, 15.5007, 43.1792) |
| Luminance | 0.1550 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.08
Medium Purple
#9E43A2
ΔE00 3.12
Purply
#983FB2
ΔE00 4.12
Barney
#AC1DB8
ΔE00 4.74
Purpley Pink
#C83CB9
ΔE00 5.56
Darkorchid
#9932CC
ΔE00 7.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB40B1 #46B140
analogous
#7240B1 #AB40B1 #B1407F
triadic
#AB40B1 #B1AB40 #40B1AB
tetradic
#AB40B1 #B17240 #46B140 #407FB1
square
#AB40B1 #B17240 #46B140 #407FB1
split-complementary
#AB40B1 #7FB140 #40B172
monochromatic
#541F57 #803084 #AB40B1 #C366C8 #D493D8
Accessibility & contrast
On white
5.12
#AB40B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#AB40B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB40B1
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB40B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB40B1 | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D65B4
Deuteranopia (green-blind)
#5672AE
Tritanopia (blue-blind)
#AF5073
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #ab40b1; /* rgb */ color: rgb(171, 64, 177); /* oklch */ color: oklch(56.2% 0.194 325.6);
Tailwind
colors: {
custom: {
50: '#c77dc9',
500: '#ab40b1',
950: '#000000',
},
}SCSS
$custom: #ab40b1; $custom-light: #c77dc9; $custom-dark: #000000;
JSON
{
"hex": "#ab40b1",
"rgb": {
"r": 171,
"g": 64,
"b": 177
},
"hsl": {
"h": 296.814,
"s": 46.888,
"l": 47.255
},
"oklch": {
"l": 0.56212,
"c": 0.19373,
"h": 325.6
},
"luminance": 0.15499
}Semantic roles & 50–950 ramp
primary
#AB40B1
secondary
#8CC389
accent
#D75158
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#130A13
muted
#827C82