#AF4797#AF4797
#AF4797 is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.3% C 0.165 H 337.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4797 |
|---|---|
| RGB | rgb(175, 71, 151) |
| HSL | hsl(314, 42%, 48%) |
| HSV | hsv(314, 59%, 69%) |
| CMYK | cmyk(0%, 59.4%, 13.7%, 31.4%) |
| CIE-LAB | lab(46.79, 51.93, -23.30) |
| CIE-LCH | lch(46.79, 56.92, 335.83°) |
| OKLab | oklab(56.27% 0.1524 -0.063) |
| OKLCH | oklch(56.27% 0.165 337.5) |
| XYZ | xyz(25.5187, 15.8569, 30.9888) |
| Luminance | 0.1585 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.16
Medium Purple
#9E43A2
ΔE00 5.51
Purpleish
#98568D
ΔE00 5.54
Purplish
#94568C
ΔE00 6.21
Light Plum
#9D5783
ΔE00 6.77
Purpley Pink
#C83CB9
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4797 #47AF5F
analogous
#9347AF #AF4797 #AF4763
triadic
#AF4797 #97AF47 #4797AF
tetradic
#AF4797 #AF9347 #47AF5F #4763AF
square
#AF4797 #AF9347 #47AF5F #4763AF
split-complementary
#AF4797 #63AF47 #47AF93
monochromatic
#58244C #833571 #AF4797 #C46FB1 #D69AC8
Accessibility & contrast
On white
5.03
#AF4797 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#AF4797 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF4797
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF4797 | 1.00 | 5.03 | 4.17 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A659A
Deuteranopia (green-blind)
#697594
Tritanopia (blue-blind)
#B84B68
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #af4797; /* rgb */ color: rgb(175, 71, 151); /* oklch */ color: oklch(56.3% 0.165 337.5);
Tailwind
colors: {
custom: {
50: '#ca80b5',
500: '#af4797',
950: '#000000',
},
}SCSS
$custom: #af4797; $custom-light: #ca80b5; $custom-dark: #000000;
JSON
{
"hex": "#af4797",
"rgb": {
"r": 175,
"g": 71,
"b": 151
},
"hsl": {
"h": 313.846,
"s": 42.276,
"l": 48.235
},
"oklch": {
"l": 0.56271,
"c": 0.16487,
"h": 337.5
},
"luminance": 0.15855
}Semantic roles & 50–950 ramp
primary
#AF4797
secondary
#8FC29B
accent
#D27256
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140B11
muted
#827C80