#AF5271#AF5271
#AF5271 is a mid, vivid pink. Relative luminance 0.163; OKLCH L 56.3% C 0.125 H 0.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #AF5271 |
|---|---|
| RGB | rgb(175, 82, 113) |
| HSL | hsl(340, 37%, 50%) |
| HSV | hsv(340, 53%, 69%) |
| CMYK | cmyk(0%, 53.1%, 35.4%, 31.4%) |
| CIE-LAB | lab(47.42, 41.24, 0.55) |
| CIE-LCH | lch(47.42, 41.25, 0.77°) |
| OKLab | oklab(56.3% 0.1254 0.002) |
| OKLCH | oklch(56.3% 0.125 0.9) |
| XYZ | xyz(23.6783, 16.3431, 17.5271) |
| Luminance | 0.1634 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Light Burgundy
#A8415B
ΔE00 5.84
Dark Rose
#B5485D
ΔE00 5.85
Dark Pink
#CB416B
ΔE00 5.99
Deep Rose
#C74767
ΔE00 6.00
Light Maroon
#A24857
ΔE00 6.94
Light Plum
#9D5783
ΔE00 7.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF5271 #52AF90
analogous
#AF529F #AF5271 #AF6152
triadic
#AF5271 #71AF52 #5271AF
tetradic
#AF5271 #9FAF52 #52AF90 #6152AF
square
#AF5271 #9FAF52 #52AF90 #6152AF
split-complementary
#AF5271 #52AF61 #529FAF
monochromatic
#5C2B3B #863E56 #AF5271 #C27C93 #D6A6B6
Accessibility & contrast
On white
4.92
#AF5271 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#AF5271 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF5271
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF5271 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF5271 | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#616672
Deuteranopia (green-blind)
#79776F
Tritanopia (blue-blind)
#BC4A5D
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #af5271; /* rgb */ color: rgb(175, 82, 113); /* oklch */ color: oklch(56.3% 0.125 0.9);
Tailwind
colors: {
custom: {
50: '#ca8699',
500: '#af5271',
950: '#000000',
},
}SCSS
$custom: #af5271; $custom-light: #ca8699; $custom-dark: #000000;
JSON
{
"hex": "#af5271",
"rgb": {
"r": 175,
"g": 82,
"b": 113
},
"hsl": {
"h": 340,
"s": 36.759,
"l": 50.392
},
"oklch": {
"l": 0.56296,
"c": 0.12546,
"h": 0.9
},
"luminance": 0.16341
}Semantic roles & 50–950 ramp
primary
#AF5271
secondary
#9AC3B5
accent
#CDA75B
background
#FCF8F9
surface
#F9EFF2
border
#D2CACC
text
#140B0E
muted
#827C7E