#AF508C#AF508C
#AF508C is a mid, vivid pink. Relative luminance 0.167; OKLCH L 57.0% C 0.143 H 343.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).
Color values
| HEX | #AF508C |
|---|---|
| RGB | rgb(175, 80, 140) |
| HSL | hsl(322, 37%, 50%) |
| HSV | hsv(322, 54%, 69%) |
| CMYK | cmyk(0%, 54.3%, 20%, 31.4%) |
| CIE-LAB | lab(47.94, 45.96, -14.95) |
| CIE-LCH | lch(47.94, 48.33, 341.98°) |
| OKLab | oklab(56.98% 0.1371 -0.0397) |
| OKLCH | oklch(56.98% 0.143 343.8) |
| XYZ | xyz(25.2821, 16.7468, 26.7068) |
| Luminance | 0.1674 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Light Plum
#9D5783
ΔE00 4.18
Purpleish
#98568D
ΔE00 5.16
Purplish
#94568C
ΔE00 6.01
Mediumvioletred
#C71585
ΔE00 7.68
Ugly Purple
#A442A0
ΔE00 7.74
Purplish Pink
#CE5DAE
ΔE00 8.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF508C #50AF73
analogous
#A250AF #AF508C #AF505D
triadic
#AF508C #8CAF50 #508CAF
tetradic
#AF508C #AFA250 #50AF73 #505DAF
square
#AF508C #AFA250 #50AF73 #505DAF
split-complementary
#AF508C #5DAF50 #50AFA2
monochromatic
#5B2A49 #853D6A #AF508C #C27AA8 #D5A4C3
Accessibility & contrast
On white
4.83
#AF508C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.35
#AF508C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF508C
4.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF508C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF508C | 1.00 | 4.83 | 4.35 | 4.83 |
| #FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#57688E
Deuteranopia (green-blind)
#72788A
Tritanopia (blue-blind)
#B95068
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #af508c; /* rgb */ color: rgb(175, 80, 140); /* oklch */ color: oklch(57.0% 0.143 343.8);
Tailwind
colors: {
custom: {
50: '#c985ad',
500: '#af508c',
950: '#000000',
},
}SCSS
$custom: #af508c; $custom-light: #c985ad; $custom-dark: #000000;
JSON
{
"hex": "#af508c",
"rgb": {
"r": 175,
"g": 80,
"b": 140
},
"hsl": {
"h": 322.105,
"s": 37.255,
"l": 50
},
"oklch": {
"l": 0.56979,
"c": 0.14271,
"h": 343.8
},
"luminance": 0.16745
}Semantic roles & 50–950 ramp
primary
#AF508C
secondary
#98C3A8
accent
#CD855B
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#130B10
muted
#827C7F