#8D3E97#8D3E97

#8D3E97 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.4% C 0.157 H 323.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8D3E97
RGBrgb(141, 62, 151)
HSLhsl(293, 42%, 42%)
HSVhsv(293, 59%, 59%)
CMYKcmyk(6.6%, 58.9%, 0%, 40.8%)
CIE-LABlab(40.15, 46.64, -34.04)
CIE-LCHlch(40.15, 57.74, 323.87°)
OKLaboklab(50.38% 0.1254 -0.0944)
OKLCHoklch(50.38% 0.157 323)
XYZxyz(18.2925, 11.3433, 30.4981)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3E97 #48973E
analogous
#613E97 #8D3E97 #973E75
triadic
#8D3E97 #978D3E #3E978D
tetradic
#8D3E97 #97613E #48973E #3E7597
square
#8D3E97 #97613E #48973E #3E7597
split-complementary
#8D3E97 #75973E #3E9761
monochromatic
#3C1A40 #642C6C #8D3E97 #AF58BA #C483CC

Accessibility & contrast

On white

6.43
#8D3E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8D3E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D3E97
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3E97#FFFFFF#000000##FFFFFF
##8D3E971.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599A
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#8F4B64
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d3e97;
/* rgb */ color: rgb(141, 62, 151);
/* oklch */ color: oklch(50.4% 0.157 323.0);
Tailwind
colors: {
  custom: {
    50: '#b178b6',
    500: '#8d3e97',
    950: '#000000',
  },
}
SCSS
$custom: #8d3e97;
$custom-light: #b178b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3e97",
  "rgb": {
    "r": 141,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 293.258,
    "s": 41.784,
    "l": 41.765
  },
  "oklch": {
    "l": 0.50381,
    "c": 0.15699,
    "h": 323
  },
  "luminance": 0.11342
}

Semantic roles & 50–950 ramp

primary
#8D3E97
secondary
#81B67A
accent
#D25664
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8D3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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