#AF417D#AF417D
#AF417D is a mid, vivid pink. Relative luminance 0.144; OKLCH L 54.4% C 0.157 H 349.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).
Color values
| HEX | #AF417D |
|---|---|
| RGB | rgb(175, 65, 125) |
| HSL | hsl(327, 46%, 47%) |
| HSV | hsv(327, 63%, 69%) |
| CMYK | cmyk(0%, 62.9%, 28.6%, 31.4%) |
| CIE-LAB | lab(44.77, 50.86, -10.68) |
| CIE-LCH | lch(44.77, 51.97, 348.14°) |
| OKLab | oklab(54.45% 0.1543 -0.0279) |
| OKLCH | oklch(54.45% 0.157 349.8) |
| XYZ | xyz(23.2722, 14.3776, 20.9476) |
| Luminance | 0.1437 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 5.42
Magenta (survey)
#C20078
ΔE00 5.82
Light Plum
#9D5783
ΔE00 5.96
Purpleish
#98568D
ΔE00 7.58
Purplish
#94568C
ΔE00 8.18
Deep Pink
#CB0162
ΔE00 9.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF417D #41AF73
analogous
#AA41AF #AF417D #AF4146
triadic
#AF417D #7DAF41 #417DAF
tetradic
#AF417D #AFAA41 #41AF73 #4146AF
square
#AF417D #AFAA41 #41AF73 #4146AF
split-complementary
#AF417D #46AF41 #41AFAA
monochromatic
#56203D #82305D #AF417D #C6679B #D793B8
Accessibility & contrast
On white
5.42
#AF417D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.87
#AF417D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF417D
5.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF417D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF417D | 1.00 | 5.42 | 3.87 | 5.42 |
| #FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F5E7F
Deuteranopia (green-blind)
#6E717A
Tritanopia (blue-blind)
#BB3C59
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #af417d; /* rgb */ color: rgb(175, 65, 125); /* oklch */ color: oklch(54.4% 0.157 349.8);
Tailwind
colors: {
custom: {
50: '#ca7ca2',
500: '#af417d',
950: '#000000',
},
}SCSS
$custom: #af417d; $custom-light: #ca7ca2; $custom-dark: #000000;
JSON
{
"hex": "#af417d",
"rgb": {
"r": 175,
"g": 65,
"b": 125
},
"hsl": {
"h": 327.273,
"s": 45.833,
"l": 47.059
},
"oklch": {
"l": 0.54448,
"c": 0.15684,
"h": 349.8
},
"luminance": 0.14375
}Semantic roles & 50–950 ramp
primary
#AF417D
secondary
#89C2A3
accent
#D58E52
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F