#AB4E9D#AB4E9D
#AB4E9D is a mid, vivid purple. Relative luminance 0.165; OKLCH L 56.9% C 0.156 H 333.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #AB4E9D |
|---|---|
| RGB | rgb(171, 78, 157) |
| HSL | hsl(309, 37%, 49%) |
| HSV | hsv(309, 54%, 67%) |
| CMYK | cmyk(0%, 54.4%, 8.2%, 32.9%) |
| CIE-LAB | lab(47.68, 48.44, -25.54) |
| CIE-LCH | lch(47.68, 54.77, 332.20°) |
| OKLab | oklab(56.89% 0.1394 -0.0695) |
| OKLCH | oklch(56.89% 0.156 333.5) |
| XYZ | xyz(25.6048, 16.5428, 33.7362) |
| Luminance | 0.1654 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.84
Medium Purple
#9E43A2
ΔE00 4.92
Purpleish
#98568D
ΔE00 4.93
Purplish
#94568C
ΔE00 5.56
Purpley Pink
#C83CB9
ΔE00 6.47
Light Plum
#9D5783
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB4E9D #4EAB5C
analogous
#8B4EAB #AB4E9D #AB4E6F
triadic
#AB4E9D #9DAB4E #4E9DAB
tetradic
#AB4E9D #AB8B4E #4EAB5C #4E6FAB
square
#AB4E9D #AB8B4E #4EAB5C #4E6FAB
split-complementary
#AB4E9D #6FAB4E #4EAB8B
monochromatic
#572850 #813B76 #AB4E9D #C076B5 #D4A0CC
Accessibility & contrast
On white
4.87
#AB4E9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#AB4E9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB4E9D
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB4E9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB4E9D | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C69A0
Deuteranopia (green-blind)
#68769A
Tritanopia (blue-blind)
#B2546E
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #ab4e9d; /* rgb */ color: rgb(171, 78, 157); /* oklch */ color: oklch(56.9% 0.156 333.5);
Tailwind
colors: {
custom: {
50: '#c684ba',
500: '#ab4e9d',
950: '#000000',
},
}SCSS
$custom: #ab4e9d; $custom-light: #c684ba; $custom-dark: #000000;
JSON
{
"hex": "#ab4e9d",
"rgb": {
"r": 171,
"g": 78,
"b": 157
},
"hsl": {
"h": 309.032,
"s": 37.349,
"l": 48.824
},
"oklch": {
"l": 0.56894,
"c": 0.15573,
"h": 333.5
},
"luminance": 0.16541
}Semantic roles & 50–950 ramp
primary
#AB4E9D
secondary
#94C19B
accent
#CD6C5A
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130B11
muted
#827C80