#8E339D#8E339D

#8E339D is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.6% C 0.179 H 321.7°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8E339D
RGBrgb(142, 51, 157)
HSLhsl(292, 51%, 41%)
HSVhsv(292, 68%, 62%)
CMYKcmyk(9.6%, 67.5%, 0%, 38.4%)
CIE-LABlab(38.82, 53.08, -39.77)
CIE-LCHlch(38.82, 66.33, 323.16°)
OKLaboklab(49.55% 0.1405 -0.1109)
OKLCHoklch(49.55% 0.179 321.7)
XYZxyz(18.4243, 10.5537, 32.9584)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E339D #429D33
analogous
#59339D #8E339D #9D3377
triadic
#8E339D #9D8E33 #339D8E
tetradic
#8E339D #9D5933 #429D33 #33779D
square
#8E339D #9D5933 #429D33 #33779D
split-complementary
#8E339D #779D33 #339D59
monochromatic
#3A1541 #64246F #8E339D #B349C4 #C677D3

Accessibility & contrast

On white

6.75
#8E339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8E339D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E339D
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E339D#FFFFFF#000000##FFFFFF
##8E339D1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1455A0
Deuteranopia (green-blind)
#405F9A
Tritanopia (blue-blind)
#904564
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e339d;
/* rgb */ color: rgb(142, 51, 157);
/* oklch */ color: oklch(49.6% 0.179 321.7);
Tailwind
colors: {
  custom: {
    50: '#b272ba',
    500: '#8e339d',
    950: '#000000',
  },
}
SCSS
$custom: #8e339d;
$custom-light: #b272ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8e339d",
  "rgb": {
    "r": 142,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 291.509,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49554,
    "c": 0.17905,
    "h": 321.7
  },
  "luminance": 0.10553
}

Semantic roles & 50–950 ramp

primary
#8E339D
secondary
#7BBB70
accent
#DA4D61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E339D

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

Preview Lab → · Contrast checker → · Palette generator →

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