#AF408F#AF408F
#AF408F is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.1% C 0.169 H 340.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).
Color values
| HEX | #AF408F |
|---|---|
| RGB | rgb(175, 64, 143) |
| HSL | hsl(317, 46%, 47%) |
| HSV | hsv(317, 63%, 69%) |
| CMYK | cmyk(0%, 63.4%, 18.3%, 31.4%) |
| CIE-LAB | lab(45.31, 53.81, -20.78) |
| CIE-LCH | lch(45.31, 57.68, 338.89°) |
| OKLab | oklab(55.08% 0.16 -0.0558) |
| OKLCH | oklch(55.08% 0.169 340.8) |
| XYZ | xyz(24.4711, 14.7661, 27.5426) |
| Luminance | 0.1476 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.98
Mediumvioletred
#C71585
ΔE00 5.71
Purpleish
#98568D
ΔE00 6.19
Medium Purple
#9E43A2
ΔE00 6.30
Light Plum
#9D5783
ΔE00 6.79
Purplish
#94568C
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF408F #40AF60
analogous
#9840AF #AF408F #AF4058
triadic
#AF408F #8FAF40 #408FAF
tetradic
#AF408F #AF9840 #40AF60 #4058AF
square
#AF408F #AF9840 #40AF60 #4058AF
split-complementary
#AF408F #58AF40 #40AF98
monochromatic
#551F46 #82306A #AF408F #C765AB #D792C3
Accessibility & contrast
On white
5.31
#AF408F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.95
#AF408F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF408F
5.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF408F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF408F | 1.00 | 5.31 | 3.95 | 5.31 |
| #FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#476091
Deuteranopia (green-blind)
#68728C
Tritanopia (blue-blind)
#B94262
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #af408f; /* rgb */ color: rgb(175, 64, 143); /* oklch */ color: oklch(55.1% 0.169 340.8);
Tailwind
colors: {
custom: {
50: '#ca7cb0',
500: '#af408f',
950: '#000000',
},
}SCSS
$custom: #af408f; $custom-light: #ca7cb0; $custom-dark: #000000;
JSON
{
"hex": "#af408f",
"rgb": {
"r": 175,
"g": 64,
"b": 143
},
"hsl": {
"h": 317.297,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.55078,
"c": 0.16949,
"h": 340.8
},
"luminance": 0.14764
}Semantic roles & 50–950 ramp
primary
#AF408F
secondary
#88C399
accent
#D67852
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F