#AB317E#AB317E
#AB317E is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.1% C 0.176 H 346.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AB317E |
|---|---|
| RGB | rgb(171, 49, 126) |
| HSL | hsl(322, 55%, 43%) |
| HSV | hsv(322, 71%, 67%) |
| CMYK | cmyk(0%, 71.3%, 26.3%, 32.9%) |
| CIE-LAB | lab(41.79, 56.32, -15.88) |
| CIE-LCH | lch(41.79, 58.52, 344.25°) |
| OKLab | oklab(52.14% 0.1707 -0.0421) |
| OKLCH | oklch(52.14% 0.176 346.2) |
| XYZ | xyz(21.6597, 12.3632, 20.9803) |
| Luminance | 0.1236 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Magenta (survey)
#C20078
ΔE00 4.80
Mediumvioletred
#C71585
ΔE00 4.82
Red Violet
#9E0168
ΔE00 6.50
Warm Purple
#952E8F
ΔE00 7.53
Ugly Purple
#A442A0
ΔE00 7.78
Deep Magenta
#A0025C
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB317E #31AB5E
analogous
#9B31AB #AB317E #AB3141
triadic
#AB317E #7EAB31 #317EAB
tetradic
#AB317E #AB9B31 #31AB5E #3141AB
square
#AB317E #AB9B31 #31AB5E #3141AB
split-complementary
#AB317E #41AB31 #31AB9B
monochromatic
#4C1638 #7B235B #AB317E #CC4D9D #DA7DB7
Accessibility & contrast
On white
6.05
#AB317E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#AB317E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB317E
6.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB317E | 1.00 | 6.05 | 3.47 | 6.05 |
| #FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#405580
Deuteranopia (green-blind)
#646A7B
Tritanopia (blue-blind)
#B72E53
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #ab317e; /* rgb */ color: rgb(171, 49, 126); /* oklch */ color: oklch(52.1% 0.176 346.2);
Tailwind
colors: {
custom: {
50: '#c874a3',
500: '#ab317e',
950: '#000000',
},
}SCSS
$custom: #ab317e; $custom-light: #c874a3; $custom-dark: #000000;
JSON
{
"hex": "#ab317e",
"rgb": {
"r": 171,
"g": 49,
"b": 126
},
"hsl": {
"h": 322.131,
"s": 55.455,
"l": 43.137
},
"oklch": {
"l": 0.5214,
"c": 0.17578,
"h": 346.2
},
"luminance": 0.12361
}Semantic roles & 50–950 ramp
primary
#AB317E
secondary
#75C292
accent
#DF8049
background
#FCF7FA
surface
#F9EDF3
border
#D2C8CD
text
#14090F
muted
#827B7F