#8D3172#8D3172

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

Color values

HEX#8D3172
RGBrgb(141, 49, 114)
HSLhsl(318, 48%, 37%)
HSVhsv(318, 65%, 55%)
CMYKcmyk(0%, 65.2%, 19.1%, 44.7%)
CIE-LABlab(36.13, 46.23, -17.54)
CIE-LCHlch(36.13, 49.44, 339.22°)
OKLaboklab(46.85% 0.1377 -0.0471)
OKLCHoklch(46.85% 0.146 341.1)
XYZxyz(15.1205, 9.0756, 16.8718)
Luminance0.0907 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3172 #318D4C
analogous
#7A318D #8D3172 #8D3144
triadic
#8D3172 #728D31 #31728D
tetradic
#8D3172 #8D7A31 #318D4C #31448D
square
#8D3172 #8D7A31 #318D4C #31448D
split-complementary
#8D3172 #448D31 #318D7A
monochromatic
#321129 #60214D #8D3172 #BA4197 #CC6CB0

Accessibility & contrast

On white

7.46
#8D3172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8D3172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D3172
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3172#FFFFFF#000000##FFFFFF
##8D31721.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374C74
Deuteranopia (green-blind)
#535A70
Tritanopia (blue-blind)
#95334D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8d3172;
/* rgb */ color: rgb(141, 49, 114);
/* oklch */ color: oklch(46.8% 0.146 341.1);
Tailwind
colors: {
  custom: {
    50: '#b1709a',
    500: '#8d3172',
    950: '#000000',
  },
}
SCSS
$custom: #8d3172;
$custom-light: #b1709a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3172",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 317.609,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.46849,
    "c": 0.14552,
    "h": 341.1
  },
  "luminance": 0.09074
}

Semantic roles & 50–950 ramp

primary
#8D3172
secondary
#66B47D
accent
#D87850
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8D3172

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

Preview Lab → · Contrast checker → · Palette generator →

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