#8D319D#8D319D

#8D319D is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.181 H 321.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8D319D
RGBrgb(141, 49, 157)
HSLhsl(291, 52%, 40%)
HSVhsv(291, 69%, 62%)
CMYKcmyk(10.2%, 68.8%, 0%, 38.4%)
CIE-LABlab(38.37, 53.69, -40.50)
CIE-LCHlch(38.37, 67.25, 322.97°)
OKLaboklab(49.2% 0.1416 -0.1131)
OKLCHoklch(49.2% 0.181 321.4)
XYZxyz(18.1679, 10.2946, 32.9218)
Luminance0.1029 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D319D #419D31
analogous
#57319D #8D319D #9D3177
triadic
#8D319D #9D8D31 #319D8D
tetradic
#8D319D #9D5731 #419D31 #31779D
square
#8D319D #9D5731 #419D31 #31779D
split-complementary
#8D319D #779D31 #319D57
monochromatic
#391440 #63226E #8D319D #B246C5 #C675D4

Accessibility & contrast

On white

6.87
#8D319D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8D319D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D319D
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D319D#FFFFFF#000000##FFFFFF
##8D319D1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C54A0
Deuteranopia (green-blind)
#3D5E9A
Tritanopia (blue-blind)
#8E4463
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8d319d;
/* rgb */ color: rgb(141, 49, 157);
/* oklch */ color: oklch(49.2% 0.181 321.4);
Tailwind
colors: {
  custom: {
    50: '#b271ba',
    500: '#8d319d',
    950: '#000000',
  },
}
SCSS
$custom: #8d319d;
$custom-light: #b271ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8d319d",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 291.111,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49198,
    "c": 0.1812,
    "h": 321.4
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

primary
#8D319D
secondary
#79BC6E
accent
#DC4C61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8D319D

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

Preview Lab → · Contrast checker → · Palette generator →

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