#8E39DB#8E39DB

#8E39DB is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.5% C 0.231 H 303.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8E39DB
RGBrgb(142, 57, 219)
HSLhsl(271, 69%, 54%)
HSVhsv(271, 74%, 86%)
CMYKcmyk(35.2%, 74%, 0%, 14.1%)
CIE-LABlab(43.93, 63.74, -67.90)
CIE-LCHlch(43.93, 93.12, 313.19°)
OKLaboklab(54.53% 0.1269 -0.1935)
OKLCHoklch(54.53% 0.231 303.2)
XYZxyz(25.4016, 13.7915, 68.3279)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E39DB #86DB39
analogous
#3D39DB #8E39DB #DB39D7
triadic
#8E39DB #DB8E39 #39DB8E
tetradic
#8E39DB #DB3D39 #86DB39 #39D7DB
square
#8E39DB #DB3D39 #86DB39 #39D7DB
split-complementary
#8E39DB #D7DB39 #39DB3D
monochromatic
#4F1882 #6F21B6 #8E39DB #AC6DE4 #C9A1EE

Accessibility & contrast

On white

5.59
#8E39DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8E39DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E39DB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E39DB#FFFFFF#000000##FFFFFF
##8E39DB1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#0067D8
Tritanopia (blue-blind)
#7E6288
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e39db;
/* rgb */ color: rgb(142, 57, 219);
/* oklch */ color: oklch(54.5% 0.231 303.2);
Tailwind
colors: {
  custom: {
    50: '#b578e7',
    500: '#8e39db',
    950: '#000000',
  },
}
SCSS
$custom: #8e39db;
$custom-light: #b578e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e39db",
  "rgb": {
    "r": 142,
    "g": 57,
    "b": 219
  },
  "hsl": {
    "h": 271.481,
    "s": 69.231,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54533,
    "c": 0.23138,
    "h": 303.2
  },
  "luminance": 0.13792
}

Semantic roles & 50–950 ramp

primary
#8E39DB
secondary
#B6DA95
accent
#EC3C90
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8E39DB

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

Preview Lab → · Contrast checker → · Palette generator →

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