#8E39D2#8E39D2

#8E39D2 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.8% C 0.223 H 305.3°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8E39D2
RGBrgb(142, 57, 210)
HSLhsl(273, 63%, 52%)
HSVhsv(273, 73%, 82%)
CMYKcmyk(32.4%, 72.9%, 0%, 17.6%)
CIE-LABlab(43.26, 61.70, -63.83)
CIE-LCHlch(43.26, 88.78, 314.03°)
OKLaboklab(53.85% 0.1286 -0.1815)
OKLCHoklch(53.85% 0.223 305.3)
XYZxyz(24.2487, 13.3303, 62.2558)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E39D2 #7DD239
analogous
#4139D2 #8E39D2 #D239CA
triadic
#8E39D2 #D28E39 #39D28E
tetradic
#8E39D2 #D24139 #7DD239 #39CAD2
square
#8E39D2 #D24139 #7DD239 #39CAD2
split-complementary
#8E39D2 #CAD239 #39D241
monochromatic
#4D1B76 #6E26A8 #8E39D2 #AA6BDD #C79DE9

Accessibility & contrast

On white

5.73
#8E39D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8E39D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E39D2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E39D2#FFFFFF#000000##FFFFFF
##8E39D21.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#815E83
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8e39d2;
/* rgb */ color: rgb(142, 57, 210);
/* oklch */ color: oklch(53.8% 0.223 305.3);
Tailwind
colors: {
  custom: {
    50: '#b577e1',
    500: '#8e39d2',
    950: '#000000',
  },
}
SCSS
$custom: #8e39d2;
$custom-light: #b577e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e39d2",
  "rgb": {
    "r": 142,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 273.333,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53845,
    "c": 0.22251,
    "h": 305.3
  },
  "luminance": 0.1333
}

Semantic roles & 50–950 ramp

primary
#8E39D2
secondary
#B0D592
accent
#E6428B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E39D2

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

Preview Lab → · Contrast checker → · Palette generator →

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