#8D317D#8D317D

#8D317D is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.4% C 0.154 H 335.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#8D317D
RGBrgb(141, 49, 125)
HSLhsl(310, 48%, 37%)
HSVhsv(310, 65%, 55%)
CMYKcmyk(0%, 65.2%, 11.3%, 44.7%)
CIE-LABlab(36.63, 47.97, -23.64)
CIE-LCHlch(36.63, 53.47, 333.76°)
OKLaboklab(47.38% 0.1397 -0.0643)
OKLCHoklch(47.38% 0.154 335.3)
XYZxyz(15.7846, 9.3413, 20.3698)
Luminance0.0934 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D317D #318D41
analogous
#6F318D #8D317D #8D314F
triadic
#8D317D #7D8D31 #317D8D
tetradic
#8D317D #8D6F31 #318D41 #314F8D
square
#8D317D #8D6F31 #318D41 #314F8D
split-complementary
#8D317D #4F8D31 #318D6F
monochromatic
#32112C #602155 #8D317D #BA41A5 #CC6CBB

Accessibility & contrast

On white

7.32
#8D317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8D317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D317D
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D317D#FFFFFF#000000##FFFFFF
##8D317D1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314D7F
Deuteranopia (green-blind)
#4F5B7B
Tritanopia (blue-blind)
#943752
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8d317d;
/* rgb */ color: rgb(141, 49, 125);
/* oklch */ color: oklch(47.4% 0.154 335.3);
Tailwind
colors: {
  custom: {
    50: '#b170a3',
    500: '#8d317d',
    950: '#000000',
  },
}
SCSS
$custom: #8d317d;
$custom-light: #b170a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d317d",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 310.435,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47382,
    "c": 0.15377,
    "h": 335.3
  },
  "luminance": 0.0934
}

Semantic roles & 50–950 ramp

primary
#8D317D
secondary
#66B474
accent
#D86750
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8D317D

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

Preview Lab → · Contrast checker → · Palette generator →

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