#AF317E#AF317E
#AF317E is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.8% C 0.179 H 347.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).
Color values
| HEX | #AF317E |
|---|---|
| RGB | rgb(175, 49, 126) |
| HSL | hsl(323, 56%, 44%) |
| HSV | hsv(323, 72%, 69%) |
| CMYK | cmyk(0%, 72%, 28%, 31.4%) |
| CIE-LAB | lab(42.49, 57.40, -14.75) |
| CIE-LCH | lch(42.49, 59.26, 345.59°) |
| OKLab | oklab(52.79% 0.1745 -0.0389) |
| OKLCH | oklch(52.79% 0.179 347.4) |
| XYZ | xyz(22.5444, 12.8194, 21.0218) |
| Luminance | 0.1282 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.12
Magenta (survey)
#C20078
ΔE00 4.18
Red Violet
#9E0168
ΔE00 6.96
Deep Magenta
#A0025C
ΔE00 8.02
Ugly Purple
#A442A0
ΔE00 8.15
Light Plum
#9D5783
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF317E #31AF62
analogous
#A131AF #AF317E #AF313F
triadic
#AF317E #7EAF31 #317EAF
tetradic
#AF317E #AFA131 #31AF62 #313FAF
square
#AF317E #AFA131 #31AF62 #313FAF
split-complementary
#AF317E #3FAF31 #31AFA1
monochromatic
#4F1639 #7F245C #AF317E #CE4F9D #DB7FB7
Accessibility & contrast
On white
5.89
#AF317E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#AF317E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF317E
5.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF317E | 1.00 | 5.89 | 3.56 | 5.89 |
| #FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#425680
Deuteranopia (green-blind)
#676C7B
Tritanopia (blue-blind)
#BB2D53
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #af317e; /* rgb */ color: rgb(175, 49, 126); /* oklch */ color: oklch(52.8% 0.179 347.4);
Tailwind
colors: {
custom: {
50: '#cb74a3',
500: '#af317e',
950: '#000000',
},
}SCSS
$custom: #af317e; $custom-light: #cb74a3; $custom-dark: #000000;
JSON
{
"hex": "#af317e",
"rgb": {
"r": 175,
"g": 49,
"b": 126
},
"hsl": {
"h": 323.333,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.52785,
"c": 0.17873,
"h": 347.4
},
"luminance": 0.12817
}Semantic roles & 50–950 ramp
primary
#AF317E
secondary
#78C495
accent
#E08348
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F