#AF277E#AF277E
#AF277E is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.9% C 0.190 H 346.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).
Color values
| HEX | #AF277E |
|---|---|
| RGB | rgb(175, 39, 126) |
| HSL | hsl(322, 64%, 42%) |
| HSV | hsv(322, 78%, 69%) |
| CMYK | cmyk(0%, 77.7%, 28%, 31.4%) |
| CIE-LAB | lab(41.33, 60.67, -16.51) |
| CIE-LCH | lch(41.33, 62.87, 344.77°) |
| OKLab | oklab(51.94% 0.1846 -0.0437) |
| OKLCH | oklch(51.94% 0.19 346.7) |
| XYZ | xyz(22.1717, 12.0739, 20.8975) |
| Luminance | 0.1207 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.00
Mediumvioletred
#C71585
ΔE00 4.24
Red Violet
#9E0168
ΔE00 5.94
Deep Magenta
#A0025C
ΔE00 7.42
Warm Purple
#952E8F
ΔE00 7.61
Dark Fuchsia
#9D0759
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF277E #27AF58
analogous
#9C27AF #AF277E #AF273A
triadic
#AF277E #7EAF27 #277EAF
tetradic
#AF277E #AF9C27 #27AF58 #273AAF
square
#AF277E #AF9C27 #27AF58 #273AAF
split-complementary
#AF277E #3AAF27 #27AF9C
monochromatic
#4B1136 #7D1C5A #AF277E #D43F9E #DF71B8
Accessibility & contrast
On white
6.15
#AF277E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.41
#AF277E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF277E
6.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF277E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF277E | 1.00 | 6.15 | 3.41 | 6.15 |
| #FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B5380
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#BB2250
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #af277e; /* rgb */ color: rgb(175, 39, 126); /* oklch */ color: oklch(51.9% 0.190 346.7);
Tailwind
colors: {
custom: {
50: '#cb70a3',
500: '#af277e',
950: '#000000',
},
}SCSS
$custom: #af277e; $custom-light: #cb70a3; $custom-dark: #000000;
JSON
{
"hex": "#af277e",
"rgb": {
"r": 175,
"g": 39,
"b": 126
},
"hsl": {
"h": 321.618,
"s": 63.551,
"l": 41.961
},
"oklch": {
"l": 0.51943,
"c": 0.18973,
"h": 346.7
},
"luminance": 0.12071
}Semantic roles & 50–950 ramp
primary
#AF277E
secondary
#6BC68C
accent
#E77D41
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14080F
muted
#837B7F