#8B3198#8B3198

#8B3198 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.6% C 0.176 H 322.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8B3198
RGBrgb(139, 49, 152)
HSLhsl(292, 51%, 39%)
HSVhsv(292, 68%, 60%)
CMYKcmyk(8.6%, 67.8%, 0%, 40.4%)
CIE-LABlab(37.76, 52.26, -38.46)
CIE-LCHlch(37.76, 64.89, 323.64°)
OKLaboklab(48.6% 0.1392 -0.1072)
OKLCHoklch(48.6% 0.176 322.4)
XYZxyz(17.4127, 9.9535, 30.7037)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3198 #3E9831
analogous
#583198 #8B3198 #983172
triadic
#8B3198 #988B31 #31988B
tetradic
#8B3198 #985831 #3E9831 #317298
square
#8B3198 #985831 #3E9831 #317298
split-complementary
#8B3198 #729831 #319858
monochromatic
#36133B #61226A #8B3198 #B344C3 #C572D2

Accessibility & contrast

On white

7.02
#8B3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8B3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B3198
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3198#FFFFFF#000000##FFFFFF
##8B31981.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529B
Deuteranopia (green-blind)
#3F5C95
Tritanopia (blue-blind)
#8D4260
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b3198;
/* rgb */ color: rgb(139, 49, 152);
/* oklch */ color: oklch(48.6% 0.176 322.4);
Tailwind
colors: {
  custom: {
    50: '#b071b7',
    500: '#8b3198',
    950: '#000000',
  },
}
SCSS
$custom: #8b3198;
$custom-light: #b071b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3198",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 292.427,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48603,
    "c": 0.17572,
    "h": 322.4
  },
  "luminance": 0.09953
}

Semantic roles & 50–950 ramp

primary
#8B3198
secondary
#75B96B
accent
#DB4D5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B3198

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

Preview Lab → · Contrast checker → · Palette generator →

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