#AF4F7D#AF4F7D
#AF4F7D is a mid, vivid pink. Relative luminance 0.162; OKLCH L 56.3% C 0.135 H 352.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4F7D |
|---|---|
| RGB | rgb(175, 79, 125) |
| HSL | hsl(331, 38%, 50%) |
| HSV | hsv(331, 55%, 69%) |
| CMYK | cmyk(0%, 54.9%, 28.6%, 31.4%) |
| CIE-LAB | lab(47.22, 44.30, -7.01) |
| CIE-LCH | lch(47.22, 44.85, 351.01°) |
| OKLab | oklab(56.27% 0.1342 -0.018) |
| OKLCH | oklch(56.27% 0.135 352.3) |
| XYZ | xyz(24.1778, 16.1888, 21.2495) |
| Luminance | 0.1619 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Light Plum
#9D5783
ΔE00 4.73
Purpleish
#98568D
ΔE00 7.56
Mediumvioletred
#C71585
ΔE00 8.09
Dark Pink
#CB416B
ΔE00 8.14
Purplish
#94568C
ΔE00 8.23
Light Burgundy
#A8415B
ΔE00 8.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4F7D #4FAF81
analogous
#AF4FAD #AF4F7D #AF514F
triadic
#AF4F7D #7DAF4F #4F7DAF
tetradic
#AF4F7D #ADAF4F #4FAF81 #514FAF
square
#AF4F7D #ADAF4F #4FAF81 #514FAF
split-complementary
#AF4F7D #4FAF51 #4FADAF
monochromatic
#5B2941 #853C5F #AF4F7D #C2799C #D5A3BB
Accessibility & contrast
On white
4.96
#AF4F7D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.24
#AF4F7D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF4F7D
4.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF4F7D | 1.00 | 4.96 | 4.24 | 4.96 |
| #FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5B657E
Deuteranopia (green-blind)
#75767B
Tritanopia (blue-blind)
#BB4B61
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #af4f7d; /* rgb */ color: rgb(175, 79, 125); /* oklch */ color: oklch(56.3% 0.135 352.3);
Tailwind
colors: {
custom: {
50: '#ca84a2',
500: '#af4f7d',
950: '#000000',
},
}SCSS
$custom: #af4f7d; $custom-light: #ca84a2; $custom-dark: #000000;
JSON
{
"hex": "#af4f7d",
"rgb": {
"r": 175,
"g": 79,
"b": 125
},
"hsl": {
"h": 331.25,
"s": 37.795,
"l": 49.804
},
"oklch": {
"l": 0.5627,
"c": 0.13536,
"h": 352.3
},
"luminance": 0.16187
}Semantic roles & 50–950 ramp
primary
#AF4F7D
secondary
#97C3AE
accent
#CE965A
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0F
muted
#827C7E