#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
RGBrgb(141, 49, 113)
HSLhsl(318, 48%, 37%)
HSVhsv(318, 65%, 55%)
CMYKcmyk(0%, 65.2%, 19.9%, 44.7%)
CIE-LABlab(36.09, 46.08, -16.98)
CIE-LCHlch(36.09, 49.11, 339.77°)
OKLaboklab(46.8% 0.1375 -0.0455)
OKLCHoklch(46.8% 0.145 341.7)
XYZxyz(15.0639, 9.0530, 16.5736)
Luminance0.0905 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

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
##8D31711.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.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

Preview Lab

Preview with #8D3171

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8D3171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva