#AF407D#AF407D
#AF407D is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.3% C 0.158 H 349.6°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #AF407D |
|---|---|
| RGB | rgb(175, 64, 125) |
| HSL | hsl(327, 46%, 47%) |
| HSV | hsv(327, 63%, 69%) |
| CMYK | cmyk(0%, 63.4%, 28.6%, 31.4%) |
| CIE-LAB | lab(44.61, 51.30, -10.92) |
| CIE-LCH | lch(44.61, 52.45, 347.98°) |
| OKLab | oklab(54.33% 0.1557 -0.0285) |
| OKLCH | oklch(54.33% 0.158 349.6) |
| XYZ | xyz(23.2153, 14.2638, 20.9286) |
| Luminance | 0.1426 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 5.28
Magenta (survey)
#C20078
ΔE00 5.66
Light Plum
#9D5783
ΔE00 6.10
Purpleish
#98568D
ΔE00 7.63
Purplish
#94568C
ΔE00 8.23
Deep Pink
#CB0162
ΔE00 9.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF407D #40AF72
analogous
#AA40AF #AF407D #AF4045
triadic
#AF407D #7DAF40 #407DAF
tetradic
#AF407D #AFAA40 #40AF72 #4045AF
square
#AF407D #AFAA40 #40AF72 #4045AF
split-complementary
#AF407D #45AF40 #40AFAA
monochromatic
#551F3D #82305D #AF407D #C7659B #D792B8
Accessibility & contrast
On white
5.45
#AF407D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#AF407D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF407D
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF407D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF407D | 1.00 | 5.45 | 3.85 | 5.45 |
| #FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F5D7F
Deuteranopia (green-blind)
#6E717A
Tritanopia (blue-blind)
#BB3B59
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #af407d; /* rgb */ color: rgb(175, 64, 125); /* oklch */ color: oklch(54.3% 0.158 349.6);
Tailwind
colors: {
custom: {
50: '#ca7ba2',
500: '#af407d',
950: '#000000',
},
}SCSS
$custom: #af407d; $custom-light: #ca7ba2; $custom-dark: #000000;
JSON
{
"hex": "#af407d",
"rgb": {
"r": 175,
"g": 64,
"b": 125
},
"hsl": {
"h": 327.027,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.54329,
"c": 0.1583,
"h": 349.6
},
"luminance": 0.14261
}Semantic roles & 50–950 ramp
primary
#AF407D
secondary
#88C3A3
accent
#D68D52
background
#FCF7FA
surface
#F9EEF3
border
#D2C9CD
text
#140A0F
muted
#827C7F