#8D3397#8D3397

#8D3397 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.0% C 0.173 H 323.6°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8D3397
RGBrgb(141, 51, 151)
HSLhsl(294, 50%, 40%)
HSVhsv(294, 66%, 59%)
CMYKcmyk(6.6%, 66.2%, 0%, 40.8%)
CIE-LABlab(38.32, 51.70, -36.95)
CIE-LCHlch(38.32, 63.55, 324.44°)
OKLaboklab(49.05% 0.1393 -0.1028)
OKLCHoklch(49.05% 0.173 323.6)
XYZxyz(17.7537, 10.2657, 30.3185)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3397 #3D9733
analogous
#5B3397 #8D3397 #97336F
triadic
#8D3397 #978D33 #33978D
tetradic
#8D3397 #975B33 #3D9733 #336F97
square
#8D3397 #975B33 #3D9733 #336F97
split-complementary
#8D3397 #6F9733 #33975B
monochromatic
#38143C #622469 #8D3397 #B447C1 #C774D0

Accessibility & contrast

On white

6.88
#8D3397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8D3397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D3397
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3397#FFFFFF#000000##FFFFFF
##8D33971.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D539A
Deuteranopia (green-blind)
#435E94
Tritanopia (blue-blind)
#8F4360
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8d3397;
/* rgb */ color: rgb(141, 51, 151);
/* oklch */ color: oklch(49.0% 0.173 323.6);
Tailwind
colors: {
  custom: {
    50: '#b172b6',
    500: '#8d3397',
    950: '#000000',
  },
}
SCSS
$custom: #8d3397;
$custom-light: #b172b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3397",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 294,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49048,
    "c": 0.17311,
    "h": 323.6
  },
  "luminance": 0.10265
}

Semantic roles & 50–950 ramp

primary
#8D3397
secondary
#75B86D
accent
#D94F5D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8D3397

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

Preview Lab → · Contrast checker → · Palette generator →

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