#8E339B#8E339B

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

Color values

HEX#8E339B
RGBrgb(142, 51, 155)
HSLhsl(293, 50%, 40%)
HSVhsv(293, 67%, 61%)
CMYKcmyk(8.4%, 67.1%, 0%, 39.2%)
CIE-LABlab(38.70, 52.70, -38.75)
CIE-LCHlch(38.70, 65.42, 323.67°)
OKLaboklab(49.43% 0.1405 -0.108)
OKLCHoklch(49.43% 0.177 322.5)
XYZxyz(18.2549, 10.4860, 32.0664)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E339B #409B33
analogous
#5A339B #8E339B #9B3374
triadic
#8E339B #9B8E33 #339B8E
tetradic
#8E339B #9B5A33 #409B33 #33749B
square
#8E339B #9B5A33 #409B33 #33749B
split-complementary
#8E339B #749B33 #339B5A
monochromatic
#3A153F #64246D #8E339B #B448C3 #C776D2

Accessibility & contrast

On white

6.78
#8E339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8E339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E339B
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E339B#FFFFFF#000000##FFFFFF
##8E339B1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18549E
Deuteranopia (green-blind)
#415F98
Tritanopia (blue-blind)
#904463
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8e339b;
/* rgb */ color: rgb(142, 51, 155);
/* oklch */ color: oklch(49.4% 0.177 322.5);
Tailwind
colors: {
  custom: {
    50: '#b272b9',
    500: '#8e339b',
    950: '#000000',
  },
}
SCSS
$custom: #8e339b;
$custom-light: #b272b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e339b",
  "rgb": {
    "r": 142,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 292.5,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49431,
    "c": 0.17723,
    "h": 322.5
  },
  "luminance": 0.10485
}

Semantic roles & 50–950 ramp

primary
#8E339B
secondary
#79BA6F
accent
#DA4E5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E339B

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

Preview Lab → · Contrast checker → · Palette generator →

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