#AB2257#AB2257
#AB2257 is a mid, vivid pink. Relative luminance 0.105; OKLCH L 49.4% C 0.175 H 3.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2257 |
|---|---|
| RGB | rgb(171, 34, 87) |
| HSL | hsl(337, 67%, 40%) |
| HSV | hsv(337, 80%, 67%) |
| CMYK | cmyk(0%, 80.1%, 49.1%, 32.9%) |
| CIE-LAB | lab(38.71, 56.98, 3.99) |
| CIE-LCH | lch(38.71, 57.12, 4.01°) |
| OKLab | oklab(49.45% 0.1747 0.0108) |
| OKLCH | oklch(49.45% 0.175 3.5) |
| XYZ | xyz(19.0886, 10.4928, 10.0351) |
| Luminance | 0.1049 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 3.30
Violet Red
#A50055
ΔE00 3.60
Raspberry (survey)
#B00149
ΔE00 3.77
Berry
#990F4B
ΔE00 4.63
Purple Red
#990147
ΔE00 5.27
Light Burgundy
#A8415B
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2257 #22AB76
analogous
#AB229C #AB2257 #AB3122
triadic
#AB2257 #57AB22 #2257AB
tetradic
#AB2257 #9CAB22 #22AB76 #3122AB
square
#AB2257 #9CAB22 #22AB76 #3122AB
split-complementary
#AB2257 #22AB31 #229CAB
monochromatic
#450E23 #78183D #AB2257 #D73473 #E16796
Accessibility & contrast
On white
6.78
#AB2257 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#AB2257 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2257
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2257 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2257 | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#454A58
Deuteranopia (green-blind)
#696554
Tritanopia (blue-blind)
#BA003A
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #ab2257; /* rgb */ color: rgb(171, 34, 87); /* oklch */ color: oklch(49.4% 0.175 3.5);
Tailwind
colors: {
custom: {
50: '#ca6c86',
500: '#ab2257',
950: '#000000',
},
}SCSS
$custom: #ab2257; $custom-light: #ca6c86; $custom-dark: #000000;
JSON
{
"hex": "#ab2257",
"rgb": {
"r": 171,
"g": 34,
"b": 87
},
"hsl": {
"h": 336.788,
"s": 66.829,
"l": 40.196
},
"oklch": {
"l": 0.49449,
"c": 0.17498,
"h": 3.5
},
"luminance": 0.1049
}Semantic roles & 50–950 ramp
primary
#AB2257
secondary
#63C6A0
accent
#EAA73E
background
#FDF6F8
surface
#FAECEF
border
#D3C7CA
text
#14080B
muted
#837A7C