#AF316E#AF316E
#AF316E is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.2% C 0.171 H 355.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #AF316E |
|---|---|
| RGB | rgb(175, 49, 110) |
| HSL | hsl(331, 56%, 44%) |
| HSV | hsv(331, 72%, 69%) |
| CMYK | cmyk(0%, 72%, 37.1%, 31.4%) |
| CIE-LAB | lab(41.91, 55.50, -5.73) |
| CIE-LCH | lch(41.91, 55.79, 354.10°) |
| OKLab | oklab(52.17% 0.1701 -0.0144) |
| OKLCH | oklch(52.17% 0.171 355.2) |
| XYZ | xyz(21.5934, 12.4390, 16.0127) |
| Luminance | 0.1244 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.33
Mediumvioletred
#C71585
ΔE00 5.83
Deep Pink
#CB0162
ΔE00 6.42
Deep Magenta
#A0025C
ΔE00 6.45
Violet Red
#A50055
ΔE00 6.53
Dark Fuchsia
#9D0759
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF316E #31AF72
analogous
#AF31AD #AF316E #AF3331
triadic
#AF316E #6EAF31 #316EAF
tetradic
#AF316E #ADAF31 #31AF72 #3331AF
square
#AF316E #ADAF31 #31AF72 #3331AF
split-complementary
#AF316E #31AF33 #31ADAF
monochromatic
#4F1632 #7F2450 #AF316E #CE4F8D #DB7FAC
Accessibility & contrast
On white
6.02
#AF316E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#AF316E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF316E
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF316E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF316E | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#485470
Deuteranopia (green-blind)
#6B6B6B
Tritanopia (blue-blind)
#BD244B
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #af316e; /* rgb */ color: rgb(175, 49, 110); /* oklch */ color: oklch(52.2% 0.171 355.2);
Tailwind
colors: {
custom: {
50: '#cb7497',
500: '#af316e',
950: '#000000',
},
}SCSS
$custom: #af316e; $custom-light: #cb7497; $custom-dark: #000000;
JSON
{
"hex": "#af316e",
"rgb": {
"r": 175,
"g": 49,
"b": 110
},
"hsl": {
"h": 330.952,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.52166,
"c": 0.17075,
"h": 355.2
},
"luminance": 0.12436
}Semantic roles & 50–950 ramp
primary
#AF316E
secondary
#78C49F
accent
#E09648
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090D
muted
#837B7E