#8B3397#8B3397

#8B3397 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.8% C 0.172 H 322.7°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8B3397
RGBrgb(139, 51, 151)
HSLhsl(293, 50%, 40%)
HSVhsv(293, 66%, 59%)
CMYKcmyk(7.9%, 66.2%, 0%, 40.8%)
CIE-LABlab(38.01, 51.21, -37.46)
CIE-LCHlch(38.01, 63.45, 323.81°)
OKLaboklab(48.76% 0.1369 -0.1043)
OKLCHoklch(48.76% 0.172 322.7)
XYZxyz(17.4166, 10.0919, 30.3027)
Luminance0.1009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3397 #3F9733
analogous
#593397 #8B3397 #973371
triadic
#8B3397 #978B33 #33978B
tetradic
#8B3397 #975933 #3F9733 #337197
square
#8B3397 #975933 #3F9733 #337197
split-complementary
#8B3397 #719733 #339759
monochromatic
#37143C #612469 #8B3397 #B247C1 #C574D0

Accessibility & contrast

On white

6.96
#8B3397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8B3397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3397
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3397#FFFFFF#000000##FFFFFF
##8B33971.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B539A
Deuteranopia (green-blind)
#415D94
Tritanopia (blue-blind)
#8D4360
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b3397;
/* rgb */ color: rgb(139, 51, 151);
/* oklch */ color: oklch(48.8% 0.172 322.7);
Tailwind
colors: {
  custom: {
    50: '#b072b6',
    500: '#8b3397',
    950: '#000000',
  },
}
SCSS
$custom: #8b3397;
$custom-light: #b072b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3397",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 292.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48763,
    "c": 0.17211,
    "h": 322.7
  },
  "luminance": 0.10091
}

Semantic roles & 50–950 ramp

primary
#8B3397
secondary
#76B86D
accent
#D94F5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B3397

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

Preview Lab → · Contrast checker → · Palette generator →

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