#AB5297#AB5297
#AB5297 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.2% C 0.144 H 336.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AB5297 |
|---|---|
| RGB | rgb(171, 82, 151) |
| HSL | hsl(313, 35%, 50%) |
| HSV | hsv(313, 52%, 67%) |
| CMYK | cmyk(0%, 52%, 11.7%, 32.9%) |
| CIE-LAB | lab(48.17, 45.46, -21.22) |
| CIE-LCH | lch(48.17, 50.16, 334.98°) |
| OKLab | oklab(57.18% 0.1324 -0.0573) |
| OKLCH | oklch(57.18% 0.144 336.6) |
| XYZ | xyz(25.3980, 16.9287, 31.2020) |
| Luminance | 0.1693 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpleish
#98568D
ΔE00 4.10
Purplish
#94568C
ΔE00 4.91
Light Plum
#9D5783
ΔE00 5.33
Ugly Purple
#A442A0
ΔE00 5.53
Medium Purple
#9E43A2
ΔE00 6.58
Purpley Pink
#C83CB9
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB5297 #52AB66
analogous
#9352AB #AB5297 #AB526B
triadic
#AB5297 #97AB52 #5297AB
tetradic
#AB5297 #AB9352 #52AB66 #526BAB
square
#AB5297 #AB9352 #52AB66 #526BAB
split-complementary
#AB5297 #6BAB52 #52AB93
monochromatic
#582A4E #823E72 #AB5297 #C07BB0 #D3A4C9
Accessibility & contrast
On white
4.79
#AB5297 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#AB5297 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB5297
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB5297 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB5297 | 1.00 | 4.79 | 4.39 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#536A99
Deuteranopia (green-blind)
#6D7795
Tritanopia (blue-blind)
#B3566D
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #ab5297; /* rgb */ color: rgb(171, 82, 151); /* oklch */ color: oklch(57.2% 0.144 336.6);
Tailwind
colors: {
custom: {
50: '#c686b5',
500: '#ab5297',
950: '#000000',
},
}SCSS
$custom: #ab5297; $custom-light: #c686b5; $custom-dark: #000000;
JSON
{
"hex": "#ab5297",
"rgb": {
"r": 171,
"g": 82,
"b": 151
},
"hsl": {
"h": 313.483,
"s": 35.178,
"l": 49.608
},
"oklch": {
"l": 0.57175,
"c": 0.14422,
"h": 336.6
},
"luminance": 0.16927
}Semantic roles & 50–950 ramp
primary
#AB5297
secondary
#98C1A1
accent
#CB755D
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130B11
muted
#827C80