#AF509E#AF509E
#AF509E is a mid, vivid pink. Relative luminance 0.173; OKLCH L 57.8% C 0.156 H 334.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).
Color values
| HEX | #AF509E |
|---|---|
| RGB | rgb(175, 80, 158) |
| HSL | hsl(311, 37%, 50%) |
| HSV | hsv(311, 54%, 69%) |
| CMYK | cmyk(0%, 54.3%, 9.7%, 31.4%) |
| CIE-LAB | lab(48.66, 48.82, -24.57) |
| CIE-LCH | lch(48.66, 54.65, 333.29°) |
| OKLab | oklab(57.75% 0.1412 -0.0666) |
| OKLCH | oklch(57.75% 0.156 334.7) |
| XYZ | xyz(26.7195, 17.3218, 34.2772) |
| Luminance | 0.1732 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.84
Purpleish
#98568D
ΔE00 5.33
Medium Purple
#9E43A2
ΔE00 5.95
Purplish
#94568C
ΔE00 6.05
Purpley Pink
#C83CB9
ΔE00 6.16
Pinky Purple
#C94CBE
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF509E #50AF61
analogous
#9150AF #AF509E #AF506E
triadic
#AF509E #9EAF50 #509EAF
tetradic
#AF509E #AF9150 #50AF61 #506EAF
square
#AF509E #AF9150 #50AF61 #506EAF
split-complementary
#AF509E #6EAF50 #50AF91
monochromatic
#5B2A52 #853D78 #AF509E #C27AB5 #D5A4CD
Accessibility & contrast
On white
4.70
#AF509E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.46
#AF509E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF509E
4.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF509E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF509E | 1.00 | 4.70 | 4.46 | 4.70 |
| #FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#506BA1
Deuteranopia (green-blind)
#6C799B
Tritanopia (blue-blind)
#B75570
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #af509e; /* rgb */ color: rgb(175, 80, 158); /* oklch */ color: oklch(57.8% 0.156 334.7);
Tailwind
colors: {
custom: {
50: '#c985bb',
500: '#af509e',
950: '#000000',
},
}SCSS
$custom: #af509e; $custom-light: #c985bb; $custom-dark: #000000;
JSON
{
"hex": "#af509e",
"rgb": {
"r": 175,
"g": 80,
"b": 158
},
"hsl": {
"h": 310.737,
"s": 37.255,
"l": 50
},
"oklch": {
"l": 0.57753,
"c": 0.15619,
"h": 334.7
},
"luminance": 0.1732
}Semantic roles & 50–950 ramp
primary
#AF509E
secondary
#98C3A0
accent
#CD6F5B
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B11
muted
#827C80