#8B3799#8B3799

#8B3799 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.3% C 0.168 H 321.7°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8B3799
RGBrgb(139, 55, 153)
HSLhsl(291, 47%, 41%)
HSVhsv(291, 64%, 60%)
CMYKcmyk(9.2%, 64.1%, 0%, 40%)
CIE-LABlab(38.76, 49.81, -37.47)
CIE-LCHlch(38.76, 62.33, 323.05°)
OKLaboklab(49.35% 0.1321 -0.1044)
OKLCHoklch(49.35% 0.168 321.7)
XYZxyz(17.7628, 10.5222, 31.2262)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3799 #459937
analogous
#5A3799 #8B3799 #993776
triadic
#8B3799 #998B37 #37998B
tetradic
#8B3799 #995A37 #459937 #377699
square
#8B3799 #995A37 #459937 #377699
split-complementary
#8B3799 #769937 #37995A
monochromatic
#39173F #62276C #8B3799 #AF4EBF #C37BD0

Accessibility & contrast

On white

6.77
#8B3799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8B3799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3799
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3799#FFFFFF#000000##FFFFFF
##8B37991.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559C
Deuteranopia (green-blind)
#425E96
Tritanopia (blue-blind)
#8C4763
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b3799;
/* rgb */ color: rgb(139, 55, 153);
/* oklch */ color: oklch(49.3% 0.168 321.7);
Tailwind
colors: {
  custom: {
    50: '#b074b7',
    500: '#8b3799',
    950: '#000000',
  },
}
SCSS
$custom: #8b3799;
$custom-light: #b074b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3799",
  "rgb": {
    "r": 139,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 291.429,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49347,
    "c": 0.16835,
    "h": 321.7
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#8B3799
secondary
#7DB973
accent
#D75164
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B3799

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

Preview Lab → · Contrast checker → · Palette generator →

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