#AF296F#AF296F
#AF296F is a mid, vivid pink. Relative luminance 0.118; OKLCH L 51.5% C 0.180 H 353.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #AF296F |
|---|---|
| RGB | rgb(175, 41, 111) |
| HSL | hsl(329, 62%, 42%) |
| HSV | hsv(329, 77%, 69%) |
| CMYK | cmyk(0%, 76.6%, 36.6%, 31.4%) |
| CIE-LAB | lab(40.98, 58.32, -7.74) |
| CIE-LCH | lch(40.98, 58.83, 352.44°) |
| OKLab | oklab(51.5% 0.179 -0.0197) |
| OKLCH | oklch(51.5% 0.18 353.7) |
| XYZ | xyz(21.3427, 11.8502, 16.1992) |
| Luminance | 0.1185 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 3.58
Mediumvioletred
#C71585
ΔE00 5.36
Deep Magenta
#A0025C
ΔE00 5.59
Red Violet
#9E0168
ΔE00 5.96
Dark Fuchsia
#9D0759
ΔE00 6.06
Violet Red
#A50055
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF296F #29AF69
analogous
#AC29AF #AF296F #AF292C
triadic
#AF296F #6FAF29 #296FAF
tetradic
#AF296F #AFAC29 #29AF69 #292CAF
square
#AF296F #AFAC29 #29AF69 #292CAF
split-complementary
#AF296F #2CAF29 #29AFAC
monochromatic
#4C1230 #7D1D50 #AF296F #D3428E #DE74AC
Accessibility & contrast
On white
6.23
#AF296F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#AF296F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF296F
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF296F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF296F | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#435171
Deuteranopia (green-blind)
#69696C
Tritanopia (blue-blind)
#BD1A48
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #af296f; /* rgb */ color: rgb(175, 41, 111); /* oklch */ color: oklch(51.5% 0.180 353.7);
Tailwind
colors: {
custom: {
50: '#cc7098',
500: '#af296f',
950: '#000000',
},
}SCSS
$custom: #af296f; $custom-light: #cc7098; $custom-dark: #000000;
JSON
{
"hex": "#af296f",
"rgb": {
"r": 175,
"g": 41,
"b": 111
},
"hsl": {
"h": 328.657,
"s": 62.037,
"l": 42.353
},
"oklch": {
"l": 0.51496,
"c": 0.1801,
"h": 353.7
},
"luminance": 0.11848
}Semantic roles & 50–950 ramp
primary
#AF296F
secondary
#6EC698
accent
#E59043
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080D
muted
#837B7E