#AF2A5B#AF2A5B
#AF2A5B is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.9% C 0.172 H 3.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2A5B |
|---|---|
| RGB | rgb(175, 42, 91) |
| HSL | hsl(338, 61%, 43%) |
| HSV | hsv(338, 76%, 69%) |
| CMYK | cmyk(0%, 76%, 48%, 31.4%) |
| CIE-LAB | lab(40.46, 56.01, 4.06) |
| CIE-LCH | lch(40.46, 56.15, 4.14°) |
| OKLab | oklab(50.91% 0.1715 0.011) |
| OKLCH | oklch(50.91% 0.172 3.7) |
| XYZ | xyz(20.3972, 11.5280, 11.0465) |
| Luminance | 0.1153 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 4.09
Light Burgundy
#A8415B
ΔE00 4.39
Raspberry (survey)
#B00149
ΔE00 4.54
Deep Pink
#CB0162
ΔE00 4.83
Violet Red
#A50055
ΔE00 4.99
Berry
#990F4B
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2A5B #2AAF7E
analogous
#AF2A9D #AF2A5B #AF3C2A
triadic
#AF2A5B #5BAF2A #2A5BAF
tetradic
#AF2A5B #9DAF2A #2AAF7E #3C2AAF
square
#AF2A5B #9DAF2A #2AAF7E #3C2AAF
split-complementary
#AF2A5B #2AAF3C #2A9DAF
monochromatic
#4C1228 #7E1E41 #AF2A5B #D24478 #DE759C
Accessibility & contrast
On white
6.35
#AF2A5B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#AF2A5B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2A5B
6.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2A5B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2A5B | 1.00 | 6.35 | 3.31 | 6.35 |
| #FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4A4F5C
Deuteranopia (green-blind)
#6D6958
Tritanopia (blue-blind)
#BE0B3F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af2a5b; /* rgb */ color: rgb(175, 42, 91); /* oklch */ color: oklch(50.9% 0.172 3.7);
Tailwind
colors: {
custom: {
50: '#cd7089',
500: '#af2a5b',
950: '#000000',
},
}SCSS
$custom: #af2a5b; $custom-light: #cd7089; $custom-dark: #000000;
JSON
{
"hex": "#af2a5b",
"rgb": {
"r": 175,
"g": 42,
"b": 91
},
"hsl": {
"h": 337.895,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.50907,
"c": 0.17186,
"h": 3.7
},
"luminance": 0.11525
}Semantic roles & 50–950 ramp
primary
#AF2A5B
secondary
#6FC6A6
accent
#E4A943
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C