#8D318D#8D318D

#8D318D is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.2% C 0.167 H 327.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8D318D
RGBrgb(141, 49, 141)
HSLhsl(300, 48%, 37%)
HSVhsv(300, 65%, 55%)
CMYKcmyk(0%, 65.2%, 0%, 44.7%)
CIE-LABlab(37.45, 50.71, -32.23)
CIE-LCHlch(37.45, 60.09, 327.56°)
OKLaboklab(48.24% 0.1413 -0.089)
OKLCHoklch(48.24% 0.167 327.8)
XYZxyz(16.8903, 9.7836, 26.1929)
Luminance0.0978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D318D #318D31
analogous
#5F318D #8D318D #8D315F
triadic
#8D318D #8D8D31 #318D8D
tetradic
#8D318D #8D5F31 #318D31 #315F8D
square
#8D318D #8D5F31 #318D31 #315F8D
split-complementary
#8D318D #5F8D31 #318D5F
monochromatic
#321132 #602160 #8D318D #BA41BA #CC6CCC

Accessibility & contrast

On white

7.10
#8D318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8D318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D318D
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D318D#FFFFFF#000000##FFFFFF
##8D318D1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255090
Deuteranopia (green-blind)
#475C8B
Tritanopia (blue-blind)
#913D5B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8d318d;
/* rgb */ color: rgb(141, 49, 141);
/* oklch */ color: oklch(48.2% 0.167 327.8);
Tailwind
colors: {
  custom: {
    50: '#b170af',
    500: '#8d318d',
    950: '#000000',
  },
}
SCSS
$custom: #8d318d;
$custom-light: #b170af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d318d",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 300,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.48243,
    "c": 0.16702,
    "h": 327.8
  },
  "luminance": 0.09782
}

Semantic roles & 50–950 ramp

primary
#8D318D
secondary
#66B466
accent
#D85050
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8D318D

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

Preview Lab → · Contrast checker → · Palette generator →

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