#AF5197#AF5197
#AF5197 is a mid, vivid pink. Relative luminance 0.172; OKLCH L 57.6% C 0.149 H 338.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #AF5197 |
|---|---|
| RGB | rgb(175, 81, 151) |
| HSL | hsl(315, 37%, 50%) |
| HSV | hsv(315, 54%, 69%) |
| CMYK | cmyk(0%, 53.7%, 13.7%, 31.4%) |
| CIE-LAB | lab(48.55, 47.18, -20.58) |
| CIE-LCH | lch(48.55, 51.48, 336.44°) |
| OKLab | oklab(57.58% 0.1383 -0.0554) |
| OKLCH | oklch(57.58% 0.149 338.2) |
| XYZ | xyz(26.2078, 17.2351, 31.2185) |
| Luminance | 0.1723 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpleish
#98568D
ΔE00 4.81
Light Plum
#9D5783
ΔE00 5.58
Purplish
#94568C
ΔE00 5.64
Ugly Purple
#A442A0
ΔE00 5.94
Medium Purple
#9E43A2
ΔE00 7.09
Purpley Pink
#C83CB9
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF5197 #51AF69
analogous
#9851AF #AF5197 #AF5168
triadic
#AF5197 #97AF51 #5197AF
tetradic
#AF5197 #AF9851 #51AF69 #5168AF
square
#AF5197 #AF9851 #51AF69 #5168AF
split-complementary
#AF5197 #68AF51 #51AF98
monochromatic
#5C2A4F #853D73 #AF5197 #C27BB0 #D6A5C9
Accessibility & contrast
On white
4.72
#AF5197 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#AF5197 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF5197
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF5197 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF5197 | 1.00 | 4.72 | 4.45 | 4.72 |
| #FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#546A99
Deuteranopia (green-blind)
#6F7994
Tritanopia (blue-blind)
#B8546D
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #af5197; /* rgb */ color: rgb(175, 81, 151); /* oklch */ color: oklch(57.6% 0.149 338.2);
Tailwind
colors: {
custom: {
50: '#c986b5',
500: '#af5197',
950: '#000000',
},
}SCSS
$custom: #af5197; $custom-light: #c986b5; $custom-dark: #000000;
JSON
{
"hex": "#af5197",
"rgb": {
"r": 175,
"g": 81,
"b": 151
},
"hsl": {
"h": 315.319,
"s": 37.008,
"l": 50.196
},
"oklch": {
"l": 0.57578,
"c": 0.14901,
"h": 338.2
},
"luminance": 0.17233
}Semantic roles & 50–950 ramp
primary
#AF5197
secondary
#99C3A4
accent
#CD785B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80