#8E339A#8E339A

#8E339A is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.4% C 0.176 H 322.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8E339A
RGBrgb(142, 51, 154)
HSLhsl(293, 50%, 40%)
HSVhsv(293, 67%, 60%)
CMYKcmyk(7.8%, 66.9%, 0%, 39.6%)
CIE-LABlab(38.64, 52.51, -38.24)
CIE-LCHlch(38.64, 64.96, 323.94°)
OKLaboklab(49.37% 0.1405 -0.1065)
OKLCHoklch(49.37% 0.176 322.8)
XYZxyz(18.1713, 10.4525, 31.6260)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E339A #3F9A33
analogous
#5B339A #8E339A #9A3372
triadic
#8E339A #9A8E33 #339A8E
tetradic
#8E339A #9A5B33 #3F9A33 #33729A
square
#8E339A #9A5B33 #3F9A33 #33729A
split-complementary
#8E339A #729A33 #339A5B
monochromatic
#39153E #64246C #8E339A #B448C2 #C776D2

Accessibility & contrast

On white

6.80
#8E339A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8E339A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E339A
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E339A#FFFFFF#000000##FFFFFF
##8E339A1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19549D
Deuteranopia (green-blind)
#425F97
Tritanopia (blue-blind)
#904462
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e339a;
/* rgb */ color: rgb(142, 51, 154);
/* oklch */ color: oklch(49.4% 0.176 322.8);
Tailwind
colors: {
  custom: {
    50: '#b272b8',
    500: '#8e339a',
    950: '#000000',
  },
}
SCSS
$custom: #8e339a;
$custom-light: #b272b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e339a",
  "rgb": {
    "r": 142,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 293.01,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.49371,
    "c": 0.17632,
    "h": 322.8
  },
  "luminance": 0.10452
}

Semantic roles & 50–950 ramp

primary
#8E339A
secondary
#78BA6F
accent
#DA4E5E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E339A

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

Preview Lab → · Contrast checker → · Palette generator →

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