#8E39B2#8E39B2

#8E39B2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.6% C 0.191 H 314.1°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8E39B2
RGBrgb(142, 57, 178)
HSLhsl(282, 51%, 46%)
HSVhsv(282, 68%, 70%)
CMYKcmyk(20.2%, 68%, 0%, 30.2%)
CIE-LABlab(41.04, 54.72, -48.74)
CIE-LCHlch(41.04, 73.28, 318.30°)
OKLaboklab(51.57% 0.1329 -0.1372)
OKLCHoklch(51.57% 0.191 314.1)
XYZxyz(20.6530, 11.8921, 43.3183)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E39B2 #5DB239
analogous
#5139B2 #8E39B2 #B23999
triadic
#8E39B2 #B28E39 #39B28E
tetradic
#8E39B2 #B25139 #5DB239 #3999B2
square
#8E39B2 #B25139 #5DB239 #3999B2
split-complementary
#8E39B2 #99B239 #39B251
monochromatic
#441B55 #692A84 #8E39B2 #AA5DCB #C38BDA

Accessibility & contrast

On white

6.22
#8E39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8E39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E39B2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E39B2#FFFFFF#000000##FFFFFF
##8E39B21.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#3363AF
Tritanopia (blue-blind)
#8B5171
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8e39b2;
/* rgb */ color: rgb(142, 57, 178);
/* oklch */ color: oklch(51.6% 0.191 314.1);
Tailwind
colors: {
  custom: {
    50: '#b376ca',
    500: '#8e39b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e39b2;
$custom-light: #b376ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e39b2",
  "rgb": {
    "r": 142,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 282.149,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51569,
    "c": 0.19101,
    "h": 314.1
  },
  "luminance": 0.11891
}

Semantic roles & 50–950 ramp

primary
#8E39B2
secondary
#96C482
accent
#DB4D77
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8E39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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