#8B339D#8B339D

#8B339D is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.1% C 0.178 H 320.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8B339D
RGBrgb(139, 51, 157)
HSLhsl(290, 51%, 41%)
HSVhsv(290, 68%, 62%)
CMYKcmyk(11.5%, 67.5%, 0%, 38.4%)
CIE-LABlab(38.36, 52.37, -40.53)
CIE-LCHlch(38.36, 66.22, 322.27°)
OKLaboklab(49.13% 0.1369 -0.1132)
OKLCHoklch(49.13% 0.178 320.4)
XYZxyz(17.9164, 10.2918, 32.9345)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B339D #459D33
analogous
#56339D #8B339D #9D337A
triadic
#8B339D #9D8B33 #339D8B
tetradic
#8B339D #9D5633 #459D33 #337A9D
square
#8B339D #9D5633 #459D33 #337A9D
split-complementary
#8B339D #7A9D33 #339D56
monochromatic
#391541 #62246F #8B339D #AF49C4 #C377D3

Accessibility & contrast

On white

6.87
#8B339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8B339D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B339D
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B339D#FFFFFF#000000##FFFFFF
##8B339D1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1054A0
Deuteranopia (green-blind)
#3D5D9A
Tritanopia (blue-blind)
#8C4564
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b339d;
/* rgb */ color: rgb(139, 51, 157);
/* oklch */ color: oklch(49.1% 0.178 320.4);
Tailwind
colors: {
  custom: {
    50: '#b072ba',
    500: '#8b339d',
    950: '#000000',
  },
}
SCSS
$custom: #8b339d;
$custom-light: #b072ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8b339d",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 289.811,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49132,
    "c": 0.17766,
    "h": 320.4
  },
  "luminance": 0.10291
}

Semantic roles & 50–950 ramp

primary
#8B339D
secondary
#7DBB70
accent
#DA4D65
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B339D

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

Preview Lab → · Contrast checker → · Palette generator →

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