#AB4797#AB4797
#AB4797 is a mid, vivid pink. Relative luminance 0.154; OKLCH L 55.7% C 0.162 H 336.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).
Color values
| HEX | #AB4797 |
|---|---|
| RGB | rgb(171, 71, 151) |
| HSL | hsl(312, 41%, 47%) |
| HSV | hsv(312, 58%, 67%) |
| CMYK | cmyk(0%, 58.5%, 11.7%, 32.9%) |
| CIE-LAB | lab(46.18, 50.78, -24.29) |
| CIE-LCH | lch(46.18, 56.29, 334.43°) |
| OKLab | oklab(55.7% 0.148 -0.0659) |
| OKLCH | oklch(55.7% 0.162 336) |
| XYZ | xyz(24.6340, 15.4007, 30.9473) |
| Luminance | 0.1540 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.43
Medium Purple
#9E43A2
ΔE00 4.73
Purpleish
#98568D
ΔE00 5.18
Purplish
#94568C
ΔE00 5.77
Light Plum
#9D5783
ΔE00 6.80
Purpley Pink
#C83CB9
ΔE00 7.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB4797 #47AB5B
analogous
#8D47AB #AB4797 #AB4765
triadic
#AB4797 #97AB47 #4797AB
tetradic
#AB4797 #AB8D47 #47AB5B #4765AB
square
#AB4797 #AB8D47 #47AB5B #4765AB
split-complementary
#AB4797 #65AB47 #47AB8D
monochromatic
#55234B #803571 #AB4797 #C26DB1 #D498C8
Accessibility & contrast
On white
5.15
#AB4797 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#AB4797 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB4797
5.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB4797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB4797 | 1.00 | 5.15 | 4.08 | 5.15 |
| #FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#48649A
Deuteranopia (green-blind)
#667394
Tritanopia (blue-blind)
#B34C68
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #ab4797; /* rgb */ color: rgb(171, 71, 151); /* oklch */ color: oklch(55.7% 0.162 336.0);
Tailwind
colors: {
custom: {
50: '#c780b6',
500: '#ab4797',
950: '#000000',
},
}SCSS
$custom: #ab4797; $custom-light: #c780b6; $custom-dark: #000000;
JSON
{
"hex": "#ab4797",
"rgb": {
"r": 171,
"g": 71,
"b": 151
},
"hsl": {
"h": 312,
"s": 41.322,
"l": 47.451
},
"oklch": {
"l": 0.55703,
"c": 0.16198,
"h": 336
},
"luminance": 0.15399
}Semantic roles & 50–950 ramp
primary
#AB4797
secondary
#8DC098
accent
#D16F57
background
#FCF8FB
surface
#F8EFF6
border
#D1CAD0
text
#130A11
muted
#827C80