#8D3396#8D3396

#8D3396 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.0% C 0.172 H 324.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8D3396
RGBrgb(141, 51, 150)
HSLhsl(295, 49%, 39%)
HSVhsv(295, 66%, 59%)
CMYKcmyk(6%, 66%, 0%, 41.2%)
CIE-LABlab(38.26, 51.51, -36.44)
CIE-LCHlch(38.26, 63.10, 324.73°)
OKLaboklab(48.99% 0.1393 -0.1013)
OKLCHoklch(48.99% 0.172 324)
XYZxyz(17.6729, 10.2334, 29.8926)
Luminance0.1023 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3396 #3C9633
analogous
#5B3396 #8D3396 #96336E
triadic
#8D3396 #968D33 #33968D
tetradic
#8D3396 #965B33 #3C9633 #336E96
square
#8D3396 #965B33 #3C9633 #336E96
split-complementary
#8D3396 #6E9633 #33965B
monochromatic
#37143B #622368 #8D3396 #B546C0 #C774D0

Accessibility & contrast

On white

6.89
#8D3396 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8D3396
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3396#FFFFFF#000000##FFFFFF
##8D33961.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5399
Deuteranopia (green-blind)
#435E93
Tritanopia (blue-blind)
#904260
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8d3396;
/* rgb */ color: rgb(141, 51, 150);
/* oklch */ color: oklch(49.0% 0.172 324.0);
Tailwind
colors: {
  custom: {
    50: '#b172b5',
    500: '#8d3396',
    950: '#000000',
  },
}
SCSS
$custom: #8d3396;
$custom-light: #b172b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3396",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 294.545,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48988,
    "c": 0.17221,
    "h": 324
  },
  "luminance": 0.10232
}

Semantic roles & 50–950 ramp

primary
#8D3396
secondary
#74B86D
accent
#D94F5C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8D3396

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

Preview Lab → · Contrast checker → · Palette generator →

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