#8B339B#8B339B

#8B339B is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.0% C 0.176 H 321.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8B339B
RGBrgb(139, 51, 155)
HSLhsl(291, 50%, 40%)
HSVhsv(291, 67%, 61%)
CMYKcmyk(10.3%, 67.1%, 0%, 39.2%)
CIE-LABlab(38.24, 51.98, -39.51)
CIE-LCHlch(38.24, 65.29, 322.76°)
OKLaboklab(49.01% 0.1369 -0.1103)
OKLCHoklch(49.01% 0.176 321.1)
XYZxyz(17.7470, 10.2241, 32.0426)
Luminance0.1022 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B339B #439B33
analogous
#57339B #8B339B #9B3377
triadic
#8B339B #9B8B33 #339B8B
tetradic
#8B339B #9B5733 #439B33 #33779B
square
#8B339B #9B5733 #439B33 #33779B
split-complementary
#8B339B #779B33 #339B57
monochromatic
#38153F #62246D #8B339B #B048C3 #C476D2

Accessibility & contrast

On white

6.90
#8B339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8B339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B339B
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B339B#FFFFFF#000000##FFFFFF
##8B339B1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14549E
Deuteranopia (green-blind)
#3E5D98
Tritanopia (blue-blind)
#8C4563
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b339b;
/* rgb */ color: rgb(139, 51, 155);
/* oklch */ color: oklch(49.0% 0.176 321.1);
Tailwind
colors: {
  custom: {
    50: '#b072b9',
    500: '#8b339b',
    950: '#000000',
  },
}
SCSS
$custom: #8b339b;
$custom-light: #b072b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b339b",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 290.769,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49008,
    "c": 0.17579,
    "h": 321.1
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

primary
#8B339B
secondary
#7BBA6F
accent
#DA4E63
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B339B

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

Preview Lab → · Contrast checker → · Palette generator →

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