#AF2158#AF2158
#AF2158 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.1% C 0.179 H 3.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2158 |
|---|---|
| RGB | rgb(175, 33, 88) |
| HSL | hsl(337, 68%, 41%) |
| HSV | hsv(337, 81%, 69%) |
| CMYK | cmyk(0%, 81.1%, 49.7%, 31.4%) |
| CIE-LAB | lab(39.43, 58.42, 4.48) |
| CIE-LCH | lch(39.43, 58.59, 4.39°) |
| OKLab | oklab(50.12% 0.179 0.012) |
| OKLCH | oklch(50.12% 0.179 3.8) |
| XYZ | xyz(19.9863, 10.9091, 10.2839) |
| Luminance | 0.1091 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 3.22
Raspberry (survey)
#B00149
ΔE00 3.70
Violet Red
#A50055
ΔE00 4.11
Deep Pink
#CB0162
ΔE00 4.97
Berry
#990F4B
ΔE00 5.30
Light Burgundy
#A8415B
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2158 #21AF78
analogous
#AF219F #AF2158 #AF3121
triadic
#AF2158 #58AF21 #2158AF
tetradic
#AF2158 #9FAF21 #21AF78 #3121AF
square
#AF2158 #9FAF21 #21AF78 #3121AF
split-complementary
#AF2158 #21AF31 #219FAF
monochromatic
#480E24 #7C173E #AF2158 #D93474 #E36897
Accessibility & contrast
On white
6.60
#AF2158 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#AF2158 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2158
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2158 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2158 | 1.00 | 6.60 | 3.18 | 6.60 |
| #FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#464B59
Deuteranopia (green-blind)
#6B6755
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #af2158; /* rgb */ color: rgb(175, 33, 88); /* oklch */ color: oklch(50.1% 0.179 3.8);
Tailwind
colors: {
custom: {
50: '#cd6c86',
500: '#af2158',
950: '#000000',
},
}SCSS
$custom: #af2158; $custom-light: #cd6c86; $custom-dark: #000000;
JSON
{
"hex": "#af2158",
"rgb": {
"r": 175,
"g": 33,
"b": 88
},
"hsl": {
"h": 336.761,
"s": 68.269,
"l": 40.784
},
"oklch": {
"l": 0.50123,
"c": 0.17944,
"h": 3.8
},
"luminance": 0.10906
}Semantic roles & 50–950 ramp
primary
#AF2158
secondary
#64C8A1
accent
#EBA83D
background
#FDF7F8
surface
#FAEDEF
border
#D3C8CA
text
#15080B
muted
#837B7C