#AF2851#AF2851
#AF2851 is a mid, vivid pink. Relative luminance 0.112; OKLCH L 50.5% C 0.172 H 8.3°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2851 |
|---|---|
| RGB | rgb(175, 40, 81) |
| HSL | hsl(342, 63%, 42%) |
| HSV | hsv(342, 77%, 69%) |
| CMYK | cmyk(0%, 77.1%, 53.7%, 31.4%) |
| CIE-LAB | lab(39.96, 55.81, 9.69) |
| CIE-LCH | lch(39.96, 56.64, 9.85°) |
| OKLab | oklab(50.46% 0.1698 0.0248) |
| OKLCH | oklch(50.46% 0.172 8.3) |
| XYZ | xyz(19.9250, 11.2284, 8.9011) |
| Luminance | 0.1123 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 2.78
Raspberry (survey)
#B00149
ΔE00 2.99
Light Burgundy
#A8415B
ΔE00 4.22
Deep Pink
#CB0162
ΔE00 5.84
Rouge
#AB1239
ΔE00 5.94
Ruby
#CA0147
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2851 #28AF86
analogous
#AF2895 #AF2851 #AF4328
triadic
#AF2851 #51AF28 #2851AF
tetradic
#AF2851 #95AF28 #28AF86 #4328AF
square
#AF2851 #95AF28 #28AF86 #4328AF
split-complementary
#AF2851 #28AF43 #2895AF
monochromatic
#4B1123 #7D1D3A #AF2851 #D4416D #DF7393
Accessibility & contrast
On white
6.47
#AF2851 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.25
#AF2851 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2851
6.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2851 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2851 | 1.00 | 6.47 | 3.25 | 6.47 |
| #FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B4D52
Deuteranopia (green-blind)
#6E684E
Tritanopia (blue-blind)
#BF003A
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #af2851; /* rgb */ color: rgb(175, 40, 81); /* oklch */ color: oklch(50.5% 0.172 8.3);
Tailwind
colors: {
custom: {
50: '#cd6f81',
500: '#af2851',
950: '#000000',
},
}SCSS
$custom: #af2851; $custom-light: #cd6f81; $custom-dark: #000000;
JSON
{
"hex": "#af2851",
"rgb": {
"r": 175,
"g": 40,
"b": 81
},
"hsl": {
"h": 341.778,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.50456,
"c": 0.17164,
"h": 8.3
},
"luminance": 0.11226
}Semantic roles & 50–950 ramp
primary
#AF2851
secondary
#6DC6AB
accent
#E6B442
background
#FDF7F7
surface
#FAEDEE
border
#D3C8C9
text
#15080A
muted
#837B7C