#8B3797#8B3797

#8B3797 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.2% C 0.166 H 322.5°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8B3797
RGBrgb(139, 55, 151)
HSLhsl(293, 47%, 40%)
HSVhsv(293, 64%, 59%)
CMYKcmyk(7.9%, 63.6%, 0%, 40.8%)
CIE-LABlab(38.65, 49.42, -36.44)
CIE-LCHlch(38.65, 61.41, 323.60°)
OKLaboklab(49.23% 0.132 -0.1014)
OKLCHoklch(49.23% 0.166 322.5)
XYZxyz(17.5990, 10.4566, 30.3635)
Luminance0.1046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3797 #439737
analogous
#5B3797 #8B3797 #973773
triadic
#8B3797 #978B37 #37978B
tetradic
#8B3797 #975B37 #439737 #377397
square
#8B3797 #975B37 #439737 #377397
split-complementary
#8B3797 #739737 #37975B
monochromatic
#38163D #62276A #8B3797 #B04DBE #C47ACF

Accessibility & contrast

On white

6.79
#8B3797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8B3797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3797
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3797#FFFFFF#000000##FFFFFF
##8B37971.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559A
Deuteranopia (green-blind)
#445E95
Tritanopia (blue-blind)
#8D4662
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b3797;
/* rgb */ color: rgb(139, 55, 151);
/* oklch */ color: oklch(49.2% 0.166 322.5);
Tailwind
colors: {
  custom: {
    50: '#b074b6',
    500: '#8b3797',
    950: '#000000',
  },
}
SCSS
$custom: #8b3797;
$custom-light: #b074b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3797",
  "rgb": {
    "r": 139,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 292.5,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49228,
    "c": 0.16646,
    "h": 322.5
  },
  "luminance": 0.10456
}

Semantic roles & 50–950 ramp

primary
#8B3797
secondary
#7BB872
accent
#D65262
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B3797

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

Preview Lab → · Contrast checker → · Palette generator →

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