#AB40B5#AB40B5
#AB40B5 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.197 H 324.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #AB40B5 |
|---|---|
| RGB | rgb(171, 64, 181) |
| HSL | hsl(295, 48%, 48%) |
| HSV | hsv(295, 65%, 71%) |
| CMYK | cmyk(5.5%, 64.6%, 0%, 29%) |
| CIE-LAB | lab(46.53, 59.03, -41.51) |
| CIE-LCH | lch(46.53, 72.17, 324.89°) |
| OKLab | oklab(56.44% 0.16 -0.1153) |
| OKLCH | oklch(56.44% 0.197 324.2) |
| XYZ | xyz(26.9678, 15.6625, 45.3098) |
| Luminance | 0.1566 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 3.62
Ugly Purple
#A442A0
ΔE00 3.76
Purply
#983FB2
ΔE00 3.90
Barney
#AC1DB8
ΔE00 4.59
Purpley Pink
#C83CB9
ΔE00 5.64
Darkorchid
#9932CC
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB40B5 #4AB540
analogous
#7040B5 #AB40B5 #B54084
triadic
#AB40B5 #B5AB40 #40B5AB
tetradic
#AB40B5 #B57040 #4AB540 #4084B5
square
#AB40B5 #B57040 #4AB540 #4084B5
split-complementary
#AB40B5 #84B540 #40B570
monochromatic
#56205B #803088 #AB40B5 #C168CA #D496DA
Accessibility & contrast
On white
5.08
#AB40B5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#AB40B5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB40B5
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB40B5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB40B5 | 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)
#2866B8
Deuteranopia (green-blind)
#5473B2
Tritanopia (blue-blind)
#AE5275
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #ab40b5; /* rgb */ color: rgb(171, 64, 181); /* oklch */ color: oklch(56.4% 0.197 324.2);
Tailwind
colors: {
custom: {
50: '#c77dcc',
500: '#ab40b5',
950: '#000000',
},
}SCSS
$custom: #ab40b5; $custom-light: #c77dcc; $custom-dark: #000000;
JSON
{
"hex": "#ab40b5",
"rgb": {
"r": 171,
"g": 64,
"b": 181
},
"hsl": {
"h": 294.872,
"s": 47.755,
"l": 48.039
},
"oklch": {
"l": 0.56438,
"c": 0.1972,
"h": 324.2
},
"luminance": 0.15661
}Semantic roles & 50–950 ramp
primary
#AB40B5
secondary
#90C58B
accent
#D7505C
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#130A13
muted
#827C82