#AF2F86#AF2F86
#AF2F86 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.9% C 0.186 H 343.7°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F86 |
|---|---|
| RGB | rgb(175, 47, 134) |
| HSL | hsl(319, 58%, 44%) |
| HSV | hsv(319, 73%, 69%) |
| CMYK | cmyk(0%, 73.1%, 23.4%, 31.4%) |
| CIE-LAB | lab(42.57, 59.13, -19.54) |
| CIE-LCH | lch(42.57, 62.27, 341.72°) |
| OKLab | oklab(52.95% 0.1783 -0.0522) |
| OKLCH | oklch(52.95% 0.186 343.7) |
| XYZ | xyz(22.9996, 12.8706, 23.8227) |
| Luminance | 0.1287 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.41
Magenta (survey)
#C20078
ΔE00 5.18
Ugly Purple
#A442A0
ΔE00 6.52
Warm Purple
#952E8F
ΔE00 6.84
Red Violet
#9E0168
ΔE00 7.44
Medium Purple
#9E43A2
ΔE00 7.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F86 #2FAF58
analogous
#982FAF #AF2F86 #AF2F46
triadic
#AF2F86 #86AF2F #2F86AF
tetradic
#AF2F86 #AF982F #2FAF58 #2F46AF
square
#AF2F86 #AF982F #2FAF58 #2F46AF
split-complementary
#AF2F86 #46AF2F #2FAF98
monochromatic
#4F153C #7F2261 #AF2F86 #CF4CA5 #DC7CBD
Accessibility & contrast
On white
5.88
#AF2F86 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#AF2F86 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F86
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F86 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D5788
Deuteranopia (green-blind)
#646C83
Tritanopia (blue-blind)
#BA2F56
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #af2f86; /* rgb */ color: rgb(175, 47, 134); /* oklch */ color: oklch(52.9% 0.186 343.7);
Tailwind
colors: {
custom: {
50: '#cb73a9',
500: '#af2f86',
950: '#000000',
},
}SCSS
$custom: #af2f86; $custom-light: #cb73a9; $custom-dark: #000000;
JSON
{
"hex": "#af2f86",
"rgb": {
"r": 175,
"g": 47,
"b": 134
},
"hsl": {
"h": 319.219,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.52949,
"c": 0.18579,
"h": 343.7
},
"luminance": 0.12868
}Semantic roles & 50–950 ramp
primary
#AF2F86
secondary
#75C48F
accent
#E17847
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F