#AF2E7A#AF2E7A
#AF2E7A is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.3% C 0.180 H 349.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2E7A |
|---|---|
| RGB | rgb(175, 46, 122) |
| HSL | hsl(325, 58%, 43%) |
| HSV | hsv(325, 74%, 69%) |
| CMYK | cmyk(0%, 73.7%, 30.3%, 31.4%) |
| CIE-LAB | lab(41.96, 57.95, -13.09) |
| CIE-LCH | lch(41.96, 59.41, 347.27°) |
| OKLab | oklab(52.35% 0.1768 -0.0343) |
| OKLCH | oklch(52.35% 0.18 349) |
| XYZ | xyz(22.1702, 12.4756, 19.6491) |
| Luminance | 0.1247 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 3.71
Mediumvioletred
#C71585
ΔE00 4.22
Red Violet
#9E0168
ΔE00 6.41
Deep Magenta
#A0025C
ΔE00 7.22
Dark Fuchsia
#9D0759
ΔE00 7.78
Violet Red
#A50055
ΔE00 8.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2E7A #2EAF63
analogous
#A32EAF #AF2E7A #AF2E39
triadic
#AF2E7A #7AAF2E #2E7AAF
tetradic
#AF2E7A #AFA32E #2EAF63 #2E39AF
square
#AF2E7A #AFA32E #2EAF63 #2E39AF
split-complementary
#AF2E7A #39AF2E #2EAFA3
monochromatic
#4E1536 #7F2158 #AF2E7A #D04B99 #DC7BB4
Accessibility & contrast
On white
6.01
#AF2E7A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#AF2E7A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2E7A
6.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2E7A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2E7A | 1.00 | 6.01 | 3.49 | 6.01 |
| #FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#42557C
Deuteranopia (green-blind)
#676B77
Tritanopia (blue-blind)
#BC2750
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #af2e7a; /* rgb */ color: rgb(175, 46, 122); /* oklch */ color: oklch(52.3% 0.180 349.0);
Tailwind
colors: {
custom: {
50: '#cb73a0',
500: '#af2e7a',
950: '#000000',
},
}SCSS
$custom: #af2e7a; $custom-light: #cb73a0; $custom-dark: #000000;
JSON
{
"hex": "#af2e7a",
"rgb": {
"r": 175,
"g": 46,
"b": 122
},
"hsl": {
"h": 324.651,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.52349,
"c": 0.18006,
"h": 349
},
"luminance": 0.12473
}Semantic roles & 50–950 ramp
primary
#AF2E7A
secondary
#74C595
accent
#E28646
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E