#AF337E#AF337E
#AF337E is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.0% C 0.176 H 347.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #AF337E |
|---|---|
| RGB | rgb(175, 51, 126) |
| HSL | hsl(324, 55%, 44%) |
| HSV | hsv(324, 71%, 69%) |
| CMYK | cmyk(0%, 70.9%, 28%, 31.4%) |
| CIE-LAB | lab(42.75, 56.67, -14.35) |
| CIE-LCH | lch(42.75, 58.46, 345.79°) |
| OKLab | oklab(52.97% 0.1722 -0.0378) |
| OKLCH | oklch(52.97% 0.176 347.6) |
| XYZ | xyz(22.6300, 12.9904, 21.0503) |
| Luminance | 0.1299 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 4.17
Magenta (survey)
#C20078
ΔE00 4.29
Red Violet
#9E0168
ΔE00 7.21
Light Plum
#9D5783
ΔE00 7.93
Ugly Purple
#A442A0
ΔE00 8.17
Deep Magenta
#A0025C
ΔE00 8.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF337E #33AF64
analogous
#A233AF #AF337E #AF3340
triadic
#AF337E #7EAF33 #337EAF
tetradic
#AF337E #AFA233 #33AF64 #3340AF
square
#AF337E #AFA233 #33AF64 #3340AF
split-complementary
#AF337E #40AF33 #33AFA2
monochromatic
#50173A #80255C #AF337E #CD529C #DB82B7
Accessibility & contrast
On white
5.84
#AF337E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#AF337E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF337E
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF337E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF337E | 1.00 | 5.84 | 3.60 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#445780
Deuteranopia (green-blind)
#686D7B
Tritanopia (blue-blind)
#BB2F54
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #af337e; /* rgb */ color: rgb(175, 51, 126); /* oklch */ color: oklch(53.0% 0.176 347.6);
Tailwind
colors: {
custom: {
50: '#cb75a3',
500: '#af337e',
950: '#000000',
},
}SCSS
$custom: #af337e; $custom-light: #cb75a3; $custom-dark: #000000;
JSON
{
"hex": "#af337e",
"rgb": {
"r": 175,
"g": 51,
"b": 126
},
"hsl": {
"h": 323.71,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.52974,
"c": 0.1763,
"h": 347.6
},
"luminance": 0.12988
}Semantic roles & 50–950 ramp
primary
#AF337E
secondary
#7AC497
accent
#DE844A
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F