#8B3791#8B3791

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

Color values

HEX#8B3791
RGBrgb(139, 55, 145)
HSLhsl(296, 45%, 39%)
HSVhsv(296, 62%, 57%)
CMYKcmyk(4.1%, 62.1%, 0%, 43.1%)
CIE-LABlab(38.32, 48.27, -33.32)
CIE-LCHlch(38.32, 58.66, 325.38°)
OKLaboklab(48.88% 0.1318 -0.0923)
OKLCHoklch(48.88% 0.161 325)
XYZxyz(17.1241, 10.2667, 27.8623)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3791 #3D9137
analogous
#5E3791 #8B3791 #91376A
triadic
#8B3791 #918B37 #37918B
tetradic
#8B3791 #915E37 #3D9137 #376A91
square
#8B3791 #915E37 #3D9137 #376A91
split-complementary
#8B3791 #6A9137 #37915E
monochromatic
#361538 #602665 #8B3791 #B34BBB #C677CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B3791#FFFFFF#000000##FFFFFF
##8B37911.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)
#285494
Deuteranopia (green-blind)
#475E8F
Tritanopia (blue-blind)
#8E445F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b3791;
/* rgb */ color: rgb(139, 55, 145);
/* oklch */ color: oklch(48.9% 0.161 325.0);
Tailwind
colors: {
  custom: {
    50: '#af74b1',
    500: '#8b3791',
    950: '#000000',
  },
}
SCSS
$custom: #8b3791;
$custom-light: #af74b1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3791",
  "rgb": {
    "r": 139,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 296,
    "s": 45,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48878,
    "c": 0.16087,
    "h": 325
  },
  "luminance": 0.10266
}

Semantic roles & 50–950 ramp

primary
#8B3791
secondary
#74B470
accent
#D5535C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B3791

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

Preview Lab → · Contrast checker → · Palette generator →

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