#AF507F#AF507F
#AF507F is a mid, vivid pink. Relative luminance 0.164; OKLCH L 56.5% C 0.135 H 351.4°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).
Color values
| HEX | #AF507F |
|---|---|
| RGB | rgb(175, 80, 127) |
| HSL | hsl(330, 37%, 50%) |
| HSV | hsv(330, 54%, 69%) |
| CMYK | cmyk(0%, 54.3%, 27.4%, 31.4%) |
| CIE-LAB | lab(47.48, 44.08, -7.83) |
| CIE-LCH | lch(47.48, 44.77, 349.92°) |
| OKLab | oklab(56.48% 0.1333 -0.0202) |
| OKLCH | oklch(56.48% 0.135 351.4) |
| XYZ | xyz(24.3795, 16.3858, 21.9534) |
| Luminance | 0.1638 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Light Plum
#9D5783
ΔE00 4.45
Purpleish
#98568D
ΔE00 7.20
Purplish
#94568C
ΔE00 7.90
Mediumvioletred
#C71585
ΔE00 8.12
Dark Pink
#CB416B
ΔE00 8.49
Magenta (survey)
#C20078
ΔE00 8.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF507F #50AF80
analogous
#AF50AE #AF507F #AF5150
triadic
#AF507F #7FAF50 #507FAF
tetradic
#AF507F #AEAF50 #50AF80 #5150AF
square
#AF507F #AEAF50 #50AF80 #5150AF
split-complementary
#AF507F #50AF51 #50AEAF
monochromatic
#5B2A42 #853D61 #AF507F #C27A9E #D5A4BC
Accessibility & contrast
On white
4.91
#AF507F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.28
#AF507F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF507F
4.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF507F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF507F | 1.00 | 4.91 | 4.28 | 4.91 |
| #FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5C6681
Deuteranopia (green-blind)
#75777D
Tritanopia (blue-blind)
#BB4C62
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #af507f; /* rgb */ color: rgb(175, 80, 127); /* oklch */ color: oklch(56.5% 0.135 351.4);
Tailwind
colors: {
custom: {
50: '#ca85a4',
500: '#af507f',
950: '#000000',
},
}SCSS
$custom: #af507f; $custom-light: #ca85a4; $custom-dark: #000000;
JSON
{
"hex": "#af507f",
"rgb": {
"r": 175,
"g": 80,
"b": 127
},
"hsl": {
"h": 330.316,
"s": 37.255,
"l": 50
},
"oklch": {
"l": 0.56482,
"c": 0.13481,
"h": 351.4
},
"luminance": 0.16384
}Semantic roles & 50–950 ramp
primary
#AF507F
secondary
#98C3AE
accent
#CD955B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B0F
muted
#827C7F