#8C339D#8C339D

#8C339D is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.3% C 0.178 H 320.8°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#8C339D
RGBrgb(140, 51, 157)
HSLhsl(290, 51%, 41%)
HSVhsv(290, 68%, 62%)
CMYKcmyk(10.8%, 67.5%, 0%, 38.4%)
CIE-LABlab(38.51, 52.61, -40.28)
CIE-LCHlch(38.51, 66.26, 322.56°)
OKLaboklab(49.27% 0.1381 -0.1125)
OKLCHoklch(49.27% 0.178 320.8)
XYZxyz(18.0841, 10.3783, 32.9424)
Luminance0.1038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C339D #449D33
analogous
#57339D #8C339D #9D3379
triadic
#8C339D #9D8C33 #339D8C
tetradic
#8C339D #9D5733 #449D33 #33799D
square
#8C339D #9D5733 #449D33 #33799D
split-complementary
#8C339D #799D33 #339D57
monochromatic
#3A1541 #63246F #8C339D #B049C4 #C477D3

Accessibility & contrast

On white

6.83
#8C339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8C339D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C339D
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C339D#FFFFFF#000000##FFFFFF
##8C339D1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1154A0
Deuteranopia (green-blind)
#3E5E9A
Tritanopia (blue-blind)
#8D4564
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8c339d;
/* rgb */ color: rgb(140, 51, 157);
/* oklch */ color: oklch(49.3% 0.178 320.8);
Tailwind
colors: {
  custom: {
    50: '#b172ba',
    500: '#8c339d',
    950: '#000000',
  },
}
SCSS
$custom: #8c339d;
$custom-light: #b172ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8c339d",
  "rgb": {
    "r": 140,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 290.377,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49272,
    "c": 0.17811,
    "h": 320.8
  },
  "luminance": 0.10377
}

Semantic roles & 50–950 ramp

primary
#8C339D
secondary
#7CBB70
accent
#DA4D64
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8C339D

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

Preview Lab → · Contrast checker → · Palette generator →

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