#AF2A5D#AF2A5D
#AF2A5D is a mid, vivid pink. Relative luminance 0.116; OKLCH L 51.0% C 0.172 H 2.7°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2A5D |
|---|---|
| RGB | rgb(175, 42, 93) |
| HSL | hsl(337, 61%, 43%) |
| HSV | hsv(337, 76%, 69%) |
| CMYK | cmyk(0%, 76%, 46.9%, 31.4%) |
| CIE-LAB | lab(40.51, 56.19, 2.88) |
| CIE-LCH | lch(40.51, 56.26, 2.93°) |
| OKLab | oklab(50.97% 0.1722 0.008) |
| OKLCH | oklch(50.97% 0.172 2.7) |
| XYZ | xyz(20.4846, 11.5629, 11.5070) |
| Luminance | 0.1156 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 4.50
Light Burgundy
#A8415B
ΔE00 4.68
Deep Pink
#CB0162
ΔE00 4.81
Violet Red
#A50055
ΔE00 4.84
Raspberry (survey)
#B00149
ΔE00 4.97
Berry
#990F4B
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2A5D #2AAF7C
analogous
#AF2AA0 #AF2A5D #AF392A
triadic
#AF2A5D #5DAF2A #2A5DAF
tetradic
#AF2A5D #A0AF2A #2AAF7C #392AAF
square
#AF2A5D #A0AF2A #2AAF7C #392AAF
split-complementary
#AF2A5D #2AAF39 #2AA0AF
monochromatic
#4C1229 #7E1E43 #AF2A5D #D2447B #DE759E
Accessibility & contrast
On white
6.34
#AF2A5D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.31
#AF2A5D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2A5D
6.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2A5D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2A5D | 1.00 | 6.34 | 3.31 | 6.34 |
| #FFFFFF | 6.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#494F5E
Deuteranopia (green-blind)
#6D695A
Tritanopia (blue-blind)
#BE0D40
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af2a5d; /* rgb */ color: rgb(175, 42, 93); /* oklch */ color: oklch(51.0% 0.172 2.7);
Tailwind
colors: {
custom: {
50: '#cc708a',
500: '#af2a5d',
950: '#000000',
},
}SCSS
$custom: #af2a5d; $custom-light: #cc708a; $custom-dark: #000000;
JSON
{
"hex": "#af2a5d",
"rgb": {
"r": 175,
"g": 42,
"b": 93
},
"hsl": {
"h": 336.992,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.50967,
"c": 0.17241,
"h": 2.7
},
"luminance": 0.1156
}Semantic roles & 50–950 ramp
primary
#AF2A5D
secondary
#6FC6A4
accent
#E4A743
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#14080B
muted
#837B7C