#8D3797#8D3797

#8D3797 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.5% C 0.167 H 323.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8D3797
RGBrgb(141, 55, 151)
HSLhsl(294, 47%, 40%)
HSVhsv(294, 64%, 59%)
CMYKcmyk(6.6%, 63.6%, 0%, 40.8%)
CIE-LABlab(38.95, 49.93, -35.95)
CIE-LCHlch(38.95, 61.53, 324.25°)
OKLaboklab(49.51% 0.1345 -0.0999)
OKLCHoklch(49.51% 0.167 323.4)
XYZxyz(17.9361, 10.6304, 30.3793)
Luminance0.1063 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3797 #419737
analogous
#5D3797 #8D3797 #973771
triadic
#8D3797 #978D37 #37978D
tetradic
#8D3797 #975D37 #419737 #377197
square
#8D3797 #975D37 #419737 #377197
split-complementary
#8D3797 #719737 #37975D
monochromatic
#39163D #63276A #8D3797 #B24DBE #C67ACF

Accessibility & contrast

On white

6.72
#8D3797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8D3797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D3797
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3797#FFFFFF#000000##FFFFFF
##8D37971.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24559A
Deuteranopia (green-blind)
#455F94
Tritanopia (blue-blind)
#8F4562
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8d3797;
/* rgb */ color: rgb(141, 55, 151);
/* oklch */ color: oklch(49.5% 0.167 323.4);
Tailwind
colors: {
  custom: {
    50: '#b174b6',
    500: '#8d3797',
    950: '#000000',
  },
}
SCSS
$custom: #8d3797;
$custom-light: #b174b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3797",
  "rgb": {
    "r": 141,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 293.75,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49507,
    "c": 0.16749,
    "h": 323.4
  },
  "luminance": 0.10629
}

Semantic roles & 50–950 ramp

primary
#8D3797
secondary
#79B872
accent
#D6525F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8D3797

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

Preview Lab → · Contrast checker → · Palette generator →

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