#AF408D#AF408D
#AF408D is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.0% C 0.168 H 341.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #AF408D |
|---|---|
| RGB | rgb(175, 64, 141) |
| HSL | hsl(318, 46%, 47%) |
| HSV | hsv(318, 63%, 69%) |
| CMYK | cmyk(0%, 63.4%, 19.4%, 31.4%) |
| CIE-LAB | lab(45.23, 53.51, -19.70) |
| CIE-LCH | lch(45.23, 57.02, 339.79°) |
| OKLab | oklab(54.99% 0.1596 -0.0528) |
| OKLCH | oklch(54.99% 0.168 341.7) |
| XYZ | xyz(24.3209, 14.7061, 26.7518) |
| Luminance | 0.1470 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Ugly Purple
#A442A0
ΔE00 5.40
Mediumvioletred
#C71585
ΔE00 5.52
Purpleish
#98568D
ΔE00 6.22
Light Plum
#9D5783
ΔE00 6.59
Medium Purple
#9E43A2
ΔE00 6.70
Purplish
#94568C
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF408D #40AF62
analogous
#9A40AF #AF408D #AF4056
triadic
#AF408D #8DAF40 #408DAF
tetradic
#AF408D #AF9A40 #40AF62 #4056AF
square
#AF408D #AF9A40 #40AF62 #4056AF
split-complementary
#AF408D #56AF40 #40AF9A
monochromatic
#551F45 #823069 #AF408D #C765A9 #D792C2
Accessibility & contrast
On white
5.33
#AF408D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.94
#AF408D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF408D
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF408D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF408D | 1.00 | 5.33 | 3.94 | 5.33 |
| #FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#48608F
Deuteranopia (green-blind)
#69728A
Tritanopia (blue-blind)
#B94161
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #af408d; /* rgb */ color: rgb(175, 64, 141); /* oklch */ color: oklch(55.0% 0.168 341.7);
Tailwind
colors: {
custom: {
50: '#ca7cae',
500: '#af408d',
950: '#000000',
},
}SCSS
$custom: #af408d; $custom-light: #ca7cae; $custom-dark: #000000;
JSON
{
"hex": "#af408d",
"rgb": {
"r": 175,
"g": 64,
"b": 141
},
"hsl": {
"h": 318.378,
"s": 46.444,
"l": 46.863
},
"oklch": {
"l": 0.54989,
"c": 0.16813,
"h": 341.7
},
"luminance": 0.14704
}Semantic roles & 50–950 ramp
primary
#AF408D
secondary
#88C39A
accent
#D67A52
background
#FCF7FA
surface
#F9EEF4
border
#D2C9CE
text
#140A10
muted
#827C7F