#AF3F7D#AF3F7D
#AF3F7D is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.2% C 0.160 H 349.5°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #AF3F7D |
|---|---|
| RGB | rgb(175, 63, 125) |
| HSL | hsl(327, 47%, 47%) |
| HSV | hsv(327, 64%, 69%) |
| CMYK | cmyk(0%, 64%, 28.6%, 31.4%) |
| CIE-LAB | lab(44.45, 51.73, -11.16) |
| CIE-LCH | lch(44.45, 52.93, 347.82°) |
| OKLab | oklab(54.21% 0.157 -0.0291) |
| OKLCH | oklch(54.21% 0.16 349.5) |
| XYZ | xyz(23.1594, 14.1520, 20.9100) |
| Luminance | 0.1415 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 5.15
Magenta (survey)
#C20078
ΔE00 5.51
Light Plum
#9D5783
ΔE00 6.24
Purpleish
#98568D
ΔE00 7.70
Purplish
#94568C
ΔE00 8.28
Ugly Purple
#A442A0
ΔE00 8.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF3F7D #3FAF71
analogous
#A93FAF #AF3F7D #AF3F45
triadic
#AF3F7D #7DAF3F #3F7DAF
tetradic
#AF3F7D #AFA93F #3FAF71 #3F45AF
square
#AF3F7D #AFA93F #3FAF71 #3F45AF
split-complementary
#AF3F7D #45AF3F #3FAFA9
monochromatic
#551F3D #822F5D #AF3F7D #C7649B #D791B8
Accessibility & contrast
On white
5.48
#AF3F7D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.83
#AF3F7D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF3F7D
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF3F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF3F7D | 1.00 | 5.48 | 3.83 | 5.48 |
| #FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E5D7F
Deuteranopia (green-blind)
#6D707A
Tritanopia (blue-blind)
#BB3A58
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #af3f7d; /* rgb */ color: rgb(175, 63, 125); /* oklch */ color: oklch(54.2% 0.160 349.5);
Tailwind
colors: {
custom: {
50: '#ca7ba2',
500: '#af3f7d',
950: '#000000',
},
}SCSS
$custom: #af3f7d; $custom-light: #ca7ba2; $custom-dark: #000000;
JSON
{
"hex": "#af3f7d",
"rgb": {
"r": 175,
"g": 63,
"b": 125
},
"hsl": {
"h": 326.786,
"s": 47.059,
"l": 46.667
},
"oklch": {
"l": 0.54212,
"c": 0.15972,
"h": 349.5
},
"luminance": 0.1415
}Semantic roles & 50–950 ramp
primary
#AF3F7D
secondary
#87C3A2
accent
#D78D51
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F