#AF316D#AF316D
#AF316D is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.1% C 0.170 H 355.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #AF316D |
|---|---|
| RGB | rgb(175, 49, 109) |
| HSL | hsl(331, 56%, 44%) |
| HSV | hsv(331, 72%, 69%) |
| CMYK | cmyk(0%, 72%, 37.7%, 31.4%) |
| CIE-LAB | lab(41.87, 55.39, -5.16) |
| CIE-LCH | lch(41.87, 55.63, 354.68°) |
| OKLab | oklab(52.13% 0.1698 -0.0129) |
| OKLCH | oklch(52.13% 0.17 355.7) |
| XYZ | xyz(21.5392, 12.4173, 15.7275) |
| Luminance | 0.1241 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.47
Mediumvioletred
#C71585
ΔE00 6.01
Deep Pink
#CB0162
ΔE00 6.26
Violet Red
#A50055
ΔE00 6.41
Deep Magenta
#A0025C
ΔE00 6.42
Dark Fuchsia
#9D0759
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF316D #31AF73
analogous
#AF31AC #AF316D #AF3431
triadic
#AF316D #6DAF31 #316DAF
tetradic
#AF316D #ACAF31 #31AF73 #3431AF
square
#AF316D #ACAF31 #31AF73 #3431AF
split-complementary
#AF316D #31AF34 #31ACAF
monochromatic
#4F1631 #7F244F #AF316D #CE4F8C #DB7FAB
Accessibility & contrast
On white
6.03
#AF316D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#AF316D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF316D
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF316D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF316D | 1.00 | 6.03 | 3.48 | 6.03 |
| #FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#49546F
Deuteranopia (green-blind)
#6C6B6A
Tritanopia (blue-blind)
#BD244B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #af316d; /* rgb */ color: rgb(175, 49, 109); /* oklch */ color: oklch(52.1% 0.170 355.7);
Tailwind
colors: {
custom: {
50: '#cb7496',
500: '#af316d',
950: '#000000',
},
}SCSS
$custom: #af316d; $custom-light: #cb7496; $custom-dark: #000000;
JSON
{
"hex": "#af316d",
"rgb": {
"r": 175,
"g": 49,
"b": 109
},
"hsl": {
"h": 331.429,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.5213,
"c": 0.17033,
"h": 355.7
},
"luminance": 0.12415
}Semantic roles & 50–950 ramp
primary
#AF316D
secondary
#78C4A0
accent
#E09848
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E