#AF478E#AF478E
#AF478E is a mid, vivid pink. Relative luminance 0.156; OKLCH L 55.9% C 0.158 H 341.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).
Color values
| HEX | #AF478E |
|---|---|
| RGB | rgb(175, 71, 142) |
| HSL | hsl(319, 42%, 48%) |
| HSV | hsv(319, 59%, 69%) |
| CMYK | cmyk(0%, 59.4%, 18.9%, 31.4%) |
| CIE-LAB | lab(46.41, 50.55, -18.48) |
| CIE-LCH | lch(46.41, 53.82, 339.91°) |
| OKLab | oklab(55.87% 0.1505 -0.0494) |
| OKLCH | oklch(55.87% 0.158 341.8) |
| XYZ | xyz(24.8155, 15.5756, 27.2854) |
| Luminance | 0.1557 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpleish
#98568D
ΔE00 5.45
Light Plum
#9D5783
ΔE00 5.58
Ugly Purple
#A442A0
ΔE00 5.88
Purplish
#94568C
ΔE00 6.19
Mediumvioletred
#C71585
ΔE00 6.32
Medium Purple
#9E43A2
ΔE00 7.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF478E #47AF68
analogous
#9C47AF #AF478E #AF475A
triadic
#AF478E #8EAF47 #478EAF
tetradic
#AF478E #AF9C47 #47AF68 #475AAF
square
#AF478E #AF9C47 #47AF68 #475AAF
split-complementary
#AF478E #5AAF47 #47AF9C
monochromatic
#582447 #83356B #AF478E #C46FA9 #D69AC3
Accessibility & contrast
On white
5.10
#AF478E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#AF478E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF478E
5.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF478E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF478E | 1.00 | 5.10 | 4.11 | 5.10 |
| #FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E6390
Deuteranopia (green-blind)
#6C748B
Tritanopia (blue-blind)
#B94864
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #af478e; /* rgb */ color: rgb(175, 71, 142); /* oklch */ color: oklch(55.9% 0.158 341.8);
Tailwind
colors: {
custom: {
50: '#ca80af',
500: '#af478e',
950: '#000000',
},
}SCSS
$custom: #af478e; $custom-light: #ca80af; $custom-dark: #000000;
JSON
{
"hex": "#af478e",
"rgb": {
"r": 175,
"g": 71,
"b": 142
},
"hsl": {
"h": 319.038,
"s": 42.276,
"l": 48.235
},
"oklch": {
"l": 0.55874,
"c": 0.15838,
"h": 341.8
},
"luminance": 0.15573
}Semantic roles & 50–950 ramp
primary
#AF478E
secondary
#8FC2A0
accent
#D27D56
background
#FCF8FA
surface
#F9EFF4
border
#D2CACE
text
#140B10
muted
#827C7F