#AF4F97#AF4F97
#AF4F97 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.3% C 0.152 H 338.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4F97 |
|---|---|
| RGB | rgb(175, 79, 151) |
| HSL | hsl(315, 38%, 50%) |
| HSV | hsv(315, 55%, 69%) |
| CMYK | cmyk(0%, 54.9%, 13.7%, 31.4%) |
| CIE-LAB | lab(48.19, 48.16, -21.14) |
| CIE-LCH | lch(48.19, 52.60, 336.30°) |
| OKLab | oklab(57.3% 0.1412 -0.057) |
| OKLCH | oklch(57.3% 0.152 338) |
| XYZ | xyz(26.0614, 16.9423, 31.1697) |
| Luminance | 0.1694 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpleish
#98568D
ΔE00 4.88
Ugly Purple
#A442A0
ΔE00 5.53
Purplish
#94568C
ΔE00 5.69
Light Plum
#9D5783
ΔE00 5.78
Medium Purple
#9E43A2
ΔE00 6.72
Purpley Pink
#C83CB9
ΔE00 7.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4F97 #4FAF67
analogous
#974FAF #AF4F97 #AF4F67
triadic
#AF4F97 #97AF4F #4F97AF
tetradic
#AF4F97 #AF974F #4FAF67 #4F67AF
square
#AF4F97 #AF974F #4FAF67 #4F67AF
split-complementary
#AF4F97 #67AF4F #4FAF97
monochromatic
#5B294E #853C73 #AF4F97 #C279B0 #D5A3C9
Accessibility & contrast
On white
4.79
#AF4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#AF4F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF4F97
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF4F97 | 1.00 | 4.79 | 4.39 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#526999
Deuteranopia (green-blind)
#6D7894
Tritanopia (blue-blind)
#B8526C
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #af4f97; /* rgb */ color: rgb(175, 79, 151); /* oklch */ color: oklch(57.3% 0.152 338.0);
Tailwind
colors: {
custom: {
50: '#c985b5',
500: '#af4f97',
950: '#000000',
},
}SCSS
$custom: #af4f97; $custom-light: #c985b5; $custom-dark: #000000;
JSON
{
"hex": "#af4f97",
"rgb": {
"r": 175,
"g": 79,
"b": 151
},
"hsl": {
"h": 315,
"s": 37.795,
"l": 49.804
},
"oklch": {
"l": 0.57305,
"c": 0.15227,
"h": 338
},
"luminance": 0.1694
}Semantic roles & 50–950 ramp
primary
#AF4F97
secondary
#97C3A2
accent
#CE775A
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B11
muted
#827C80