#AF2257#AF2257
#AF2257 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.2% C 0.178 H 4.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2257 |
|---|---|
| RGB | rgb(175, 34, 87) |
| HSL | hsl(337, 67%, 41%) |
| HSV | hsv(337, 81%, 69%) |
| CMYK | cmyk(0%, 80.6%, 50.3%, 31.4%) |
| CIE-LAB | lab(39.49, 58.06, 5.21) |
| CIE-LCH | lch(39.49, 58.30, 5.13°) |
| OKLab | oklab(50.16% 0.1778 0.0138) |
| OKLCH | oklch(50.16% 0.178 4.5) |
| XYZ | xyz(19.9733, 10.9489, 10.0766) |
| Luminance | 0.1095 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 3.01
Raspberry (survey)
#B00149
ΔE00 3.48
Violet Red
#A50055
ΔE00 4.36
Deep Pink
#CB0162
ΔE00 5.01
Light Burgundy
#A8415B
ΔE00 5.09
Berry
#990F4B
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2257 #22AF7A
analogous
#AF229D #AF2257 #AF3422
triadic
#AF2257 #57AF22 #2257AF
tetradic
#AF2257 #9DAF22 #22AF7A #3422AF
square
#AF2257 #9DAF22 #22AF7A #3422AF
split-complementary
#AF2257 #22AF34 #229DAF
monochromatic
#490E24 #7C183E #AF2257 #D83673 #E26997
Accessibility & contrast
On white
6.58
#AF2257 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.19
#AF2257 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2257
6.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2257 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2257 | 1.00 | 6.58 | 3.19 | 6.58 |
| #FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#474B58
Deuteranopia (green-blind)
#6C6754
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #af2257; /* rgb */ color: rgb(175, 34, 87); /* oklch */ color: oklch(50.2% 0.178 4.5);
Tailwind
colors: {
custom: {
50: '#cd6d86',
500: '#af2257',
950: '#000000',
},
}SCSS
$custom: #af2257; $custom-light: #cd6d86; $custom-dark: #000000;
JSON
{
"hex": "#af2257",
"rgb": {
"r": 175,
"g": 34,
"b": 87
},
"hsl": {
"h": 337.447,
"s": 67.464,
"l": 40.98
},
"oklch": {
"l": 0.50163,
"c": 0.17834,
"h": 4.5
},
"luminance": 0.10946
}Semantic roles & 50–950 ramp
primary
#AF2257
secondary
#65C8A3
accent
#EAA93D
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C