#8D3171#8D3171
#8D3171 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 46.8% C 0.145 H 341.7°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).
Color values
| HEX | #8D3171 |
|---|---|
| RGB | rgb(141, 49, 113) |
| HSL | hsl(318, 48%, 37%) |
| HSV | hsv(318, 65%, 55%) |
| CMYK | cmyk(0%, 65.2%, 19.9%, 44.7%) |
| CIE-LAB | lab(36.09, 46.08, -16.98) |
| CIE-LCH | lch(36.09, 49.11, 339.77°) |
| OKLab | oklab(46.8% 0.1375 -0.0455) |
| OKLCH | oklch(46.8% 0.145 341.7) |
| XYZ | xyz(15.0639, 9.0530, 16.5736) |
| Luminance | 0.0905 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Bruise
#7E4071
ΔE00 4.51
Red Violet
#9E0168
ΔE00 5.42
Light Eggplant
#894585
ΔE00 5.88
Warm Purple
#952E8F
ΔE00 6.37
Grape
#6C3461
ΔE00 6.93
Deep Magenta
#A0025C
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D3171 #318D4D
analogous
#7B318D #8D3171 #8D3143
triadic
#8D3171 #718D31 #31718D
tetradic
#8D3171 #8D7B31 #318D4D #31438D
square
#8D3171 #8D7B31 #318D4D #31438D
split-complementary
#8D3171 #438D31 #318D7B
monochromatic
#321128 #60214D #8D3171 #BA4195 #CC6CAF
Accessibility & contrast
On white
7.47
#8D3171 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.81
#8D3171 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8D3171
7.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D3171 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D3171 | 1.00 | 7.47 | 2.81 | 7.47 |
| #FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#384B73
Deuteranopia (green-blind)
#535A6F
Tritanopia (blue-blind)
#95324C
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #8d3171; /* rgb */ color: rgb(141, 49, 113); /* oklch */ color: oklch(46.8% 0.145 341.7);
Tailwind
colors: {
custom: {
50: '#b1709a',
500: '#8d3171',
950: '#000000',
},
}SCSS
$custom: #8d3171; $custom-light: #b1709a; $custom-dark: #000000;
JSON
{
"hex": "#8d3171",
"rgb": {
"r": 141,
"g": 49,
"b": 113
},
"hsl": {
"h": 318.261,
"s": 48.421,
"l": 37.255
},
"oklch": {
"l": 0.46803,
"c": 0.14482,
"h": 341.7
},
"luminance": 0.09052
}Semantic roles & 50–950 ramp
primary
#8D3171
secondary
#66B47E
accent
#D87950
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E