#8D3173#8D3173

#8D3173 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 46.9% C 0.146 H 340.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8D3173
RGBrgb(141, 49, 115)
HSLhsl(317, 48%, 37%)
HSVhsv(317, 65%, 55%)
CMYKcmyk(0%, 65.2%, 18.4%, 44.7%)
CIE-LABlab(36.17, 46.38, -18.11)
CIE-LCHlch(36.17, 49.79, 338.68°)
OKLaboklab(46.9% 0.1379 -0.0487)
OKLCHoklch(46.9% 0.146 340.6)
XYZxyz(15.1777, 9.0985, 17.1732)
Luminance0.0910 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3173 #318D4B
analogous
#79318D #8D3173 #8D3145
triadic
#8D3173 #738D31 #31738D
tetradic
#8D3173 #8D7931 #318D4B #31458D
square
#8D3173 #8D7931 #318D4B #31458D
split-complementary
#8D3173 #458D31 #318D79
monochromatic
#321129 #60214E #8D3173 #BA4198 #CC6CB1

Accessibility & contrast

On white

7.45
#8D3173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8D3173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D3173
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3173#FFFFFF#000000##FFFFFF
##8D31731.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374C75
Deuteranopia (green-blind)
#525A71
Tritanopia (blue-blind)
#95334D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8d3173;
/* rgb */ color: rgb(141, 49, 115);
/* oklch */ color: oklch(46.9% 0.146 340.6);
Tailwind
colors: {
  custom: {
    50: '#b1709b',
    500: '#8d3173',
    950: '#000000',
  },
}
SCSS
$custom: #8d3173;
$custom-light: #b1709b;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3173",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 316.957,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46895,
    "c": 0.14624,
    "h": 340.6
  },
  "luminance": 0.09097
}

Semantic roles & 50–950 ramp

primary
#8D3173
secondary
#66B47C
accent
#D87650
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8D3173

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

Preview Lab → · Contrast checker → · Palette generator →

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