#AF2F8D#AF2F8D
#AF2F8D is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.190 H 340.7°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F8D |
|---|---|
| RGB | rgb(175, 47, 141) |
| HSL | hsl(316, 58%, 44%) |
| HSV | hsv(316, 73%, 69%) |
| CMYK | cmyk(0%, 73.1%, 19.4%, 31.4%) |
| CIE-LAB | lab(42.87, 60.08, -23.33) |
| CIE-LCH | lch(42.87, 64.45, 338.77°) |
| OKLab | oklab(53.27% 0.1795 -0.0629) |
| OKLCH | oklch(53.27% 0.19 340.7) |
| XYZ | xyz(23.5041, 13.0724, 26.4795) |
| Luminance | 0.1307 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Mediumvioletred
#C71585
ΔE00 5.14
Ugly Purple
#A442A0
ΔE00 5.23
Warm Purple
#952E8F
ΔE00 5.95
Magenta (survey)
#C20078
ΔE00 6.32
Medium Purple
#9E43A2
ΔE00 6.36
Barney Purple
#A00498
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F8D #2FAF51
analogous
#912FAF #AF2F8D #AF2F4D
triadic
#AF2F8D #8DAF2F #2F8DAF
tetradic
#AF2F8D #AF912F #2FAF51 #2F4DAF
square
#AF2F8D #AF912F #2FAF51 #2F4DAF
split-complementary
#AF2F8D #4DAF2F #2FAF91
monochromatic
#4F153F #7F2266 #AF2F8D #CF4CAC #DC7CC3
Accessibility & contrast
On white
5.81
#AF2F8D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.61
#AF2F8D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F8D
5.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F8D | 1.00 | 5.81 | 3.61 | 5.81 |
| #FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#395890
Deuteranopia (green-blind)
#626D8A
Tritanopia (blue-blind)
#BA325A
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #af2f8d; /* rgb */ color: rgb(175, 47, 141); /* oklch */ color: oklch(53.3% 0.190 340.7);
Tailwind
colors: {
custom: {
50: '#cb74ae',
500: '#af2f8d',
950: '#000000',
},
}SCSS
$custom: #af2f8d; $custom-light: #cb74ae; $custom-dark: #000000;
JSON
{
"hex": "#af2f8d",
"rgb": {
"r": 175,
"g": 47,
"b": 141
},
"hsl": {
"h": 315.938,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.53269,
"c": 0.1902,
"h": 340.7
},
"luminance": 0.1307
}Semantic roles & 50–950 ramp
primary
#AF2F8D
secondary
#75C48A
accent
#E17047
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F