#AF295B#AF295B
#AF295B is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.8% C 0.173 H 3.5°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #AF295B |
|---|---|
| RGB | rgb(175, 41, 91) |
| HSL | hsl(338, 62%, 42%) |
| HSV | hsv(338, 77%, 69%) |
| CMYK | cmyk(0%, 76.6%, 48%, 31.4%) |
| CIE-LAB | lab(40.34, 56.33, 3.89) |
| CIE-LCH | lch(40.34, 56.46, 3.95°) |
| OKLab | oklab(50.82% 0.1726 0.0106) |
| OKLCH | oklch(50.82% 0.173 3.5) |
| XYZ | xyz(20.3622, 11.4579, 11.0349) |
| Luminance | 0.1145 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purplish Red
#B0054B
ΔE00 4.05
Raspberry (survey)
#B00149
ΔE00 4.51
Light Burgundy
#A8415B
ΔE00 4.54
Deep Pink
#CB0162
ΔE00 4.83
Violet Red
#A50055
ΔE00 4.85
Berry
#990F4B
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF295B #29AF7D
analogous
#AF299E #AF295B #AF3A29
triadic
#AF295B #5BAF29 #295BAF
tetradic
#AF295B #9EAF29 #29AF7D #3A29AF
square
#AF295B #9EAF29 #29AF7D #3A29AF
split-complementary
#AF295B #29AF3A #299EAF
monochromatic
#4C1227 #7D1D41 #AF295B #D34278 #DE749C
Accessibility & contrast
On white
6.38
#AF295B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#AF295B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF295B
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF295B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF295B | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#494E5C
Deuteranopia (green-blind)
#6D6958
Tritanopia (blue-blind)
#BE083F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af295b; /* rgb */ color: rgb(175, 41, 91); /* oklch */ color: oklch(50.8% 0.173 3.5);
Tailwind
colors: {
custom: {
50: '#cd7089',
500: '#af295b',
950: '#000000',
},
}SCSS
$custom: #af295b; $custom-light: #cd7089; $custom-dark: #000000;
JSON
{
"hex": "#af295b",
"rgb": {
"r": 175,
"g": 41,
"b": 91
},
"hsl": {
"h": 337.612,
"s": 62.037,
"l": 42.353
},
"oklch": {
"l": 0.50822,
"c": 0.17287,
"h": 3.5
},
"luminance": 0.11455
}Semantic roles & 50–950 ramp
primary
#AF295B
secondary
#6EC6A5
accent
#E5A943
background
#FDF7F8
surface
#FAEDF0
border
#D3C8CB
text
#15080B
muted
#837B7C