#AF2A57#AF2A57
#AF2A57 is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.8% C 0.171 H 5.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2A57 |
|---|---|
| RGB | rgb(175, 42, 87) |
| HSL | hsl(340, 61%, 43%) |
| HSV | hsv(340, 76%, 69%) |
| CMYK | cmyk(0%, 76%, 50.3%, 31.4%) |
| CIE-LAB | lab(40.35, 55.66, 6.43) |
| CIE-LCH | lch(40.35, 56.03, 6.59°) |
| OKLab | oklab(50.79% 0.17 0.0169) |
| OKLCH | oklch(50.79% 0.171 5.7) |
| XYZ | xyz(20.2292, 11.4608, 10.1619) |
| Luminance | 0.1146 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 3.42
Raspberry (survey)
#B00149
ΔE00 3.80
Light Burgundy
#A8415B
ΔE00 3.99
Deep Pink
#CB0162
ΔE00 5.09
Violet Red
#A50055
ΔE00 5.49
Berry
#990F4B
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2A57 #2AAF82
analogous
#AF2A9A #AF2A57 #AF3F2A
triadic
#AF2A57 #57AF2A #2A57AF
tetradic
#AF2A57 #9AAF2A #2AAF82 #3F2AAF
square
#AF2A57 #9AAF2A #2AAF82 #3F2AAF
split-complementary
#AF2A57 #2AAF3F #2A9AAF
monochromatic
#4C1226 #7E1E3E #AF2A57 #D24474 #DE7599
Accessibility & contrast
On white
6.38
#AF2A57 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#AF2A57 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2A57
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2A57 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2A57 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B4E58
Deuteranopia (green-blind)
#6E6954
Tritanopia (blue-blind)
#BF073D
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af2a57; /* rgb */ color: rgb(175, 42, 87); /* oklch */ color: oklch(50.8% 0.171 5.7);
Tailwind
colors: {
custom: {
50: '#cd7086',
500: '#af2a57',
950: '#000000',
},
}SCSS
$custom: #af2a57; $custom-light: #cd7086; $custom-dark: #000000;
JSON
{
"hex": "#af2a57",
"rgb": {
"r": 175,
"g": 42,
"b": 87
},
"hsl": {
"h": 339.699,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.5079,
"c": 0.17087,
"h": 5.7
},
"luminance": 0.11458
}Semantic roles & 50–950 ramp
primary
#AF2A57
secondary
#6FC6A8
accent
#E4AE43
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C