#8B3399#8B3399

#8B3399 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.9% C 0.174 H 321.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8B3399
RGBrgb(139, 51, 153)
HSLhsl(292, 50%, 40%)
HSVhsv(292, 67%, 60%)
CMYKcmyk(9.2%, 66.7%, 0%, 40%)
CIE-LABlab(38.12, 51.59, -38.49)
CIE-LCHlch(38.12, 64.37, 323.28°)
OKLaboklab(48.89% 0.1369 -0.1073)
OKLCHoklch(48.89% 0.174 321.9)
XYZxyz(17.5804, 10.1575, 31.1654)
Luminance0.1016 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3399 #419933
analogous
#583399 #8B3399 #993374
triadic
#8B3399 #998B33 #33998B
tetradic
#8B3399 #995833 #419933 #337499
square
#8B3399 #995833 #419933 #337499
split-complementary
#8B3399 #749933 #339958
monochromatic
#38143D #61246B #8B3399 #B147C2 #C575D1

Accessibility & contrast

On white

6.93
#8B3399 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8B3399 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3399
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3399#FFFFFF#000000##FFFFFF
##8B33991.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18539C
Deuteranopia (green-blind)
#405D96
Tritanopia (blue-blind)
#8D4462
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b3399;
/* rgb */ color: rgb(139, 51, 153);
/* oklch */ color: oklch(48.9% 0.174 321.9);
Tailwind
colors: {
  custom: {
    50: '#b072b7',
    500: '#8b3399',
    950: '#000000',
  },
}
SCSS
$custom: #8b3399;
$custom-light: #b072b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3399",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 291.765,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.48885,
    "c": 0.17395,
    "h": 321.9
  },
  "luminance": 0.10157
}

Semantic roles & 50–950 ramp

primary
#8B3399
secondary
#79B96E
accent
#DA4E61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B3399

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

Preview Lab → · Contrast checker → · Palette generator →

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