#8E5DEC#8E5DEC

#8E5DEC is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.3% C 0.206 H 295.3°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8E5DEC
RGBrgb(142, 93, 236)
HSLhsl(261, 79%, 65%)
HSVhsv(261, 61%, 93%)
CMYKcmyk(39.8%, 60.6%, 0%, 7.5%)
CIE-LABlab(51.42, 50.60, -65.38)
CIE-LCHlch(51.42, 82.67, 307.74°)
OKLaboklab(60.28% 0.0881 -0.1862)
OKLCHoklch(60.28% 0.206 295.3)
XYZxyz(30.2060, 19.6350, 81.5391)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5DEC #BBEC5D
analogous
#5D74EC #8E5DEC #D55DEC
triadic
#8E5DEC #EC8E5D #5DEC8E
tetradic
#8E5DEC #EC5D74 #BBEC5D #5DECD5
square
#8E5DEC #EC5D74 #BBEC5D #5DECD5
split-complementary
#8E5DEC #ECD55D #74EC5D
monochromatic
#4E16B9 #6826E6 #8E5DEC #B494F2 #DACBF9

Accessibility & contrast

On white

4.26
#8E5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8E5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5DEC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5DEC#FFFFFF#000000##000000
##8E5DEC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0878E9
Tritanopia (blue-blind)
#767D9C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8e5dec;
/* rgb */ color: rgb(142, 93, 236);
/* oklch */ color: oklch(60.3% 0.206 295.3);
Tailwind
colors: {
  custom: {
    50: '#b58df3',
    500: '#8e5dec',
    950: '#000000',
  },
}
SCSS
$custom: #8e5dec;
$custom-light: #b58df3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5dec",
  "rgb": {
    "r": 142,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 260.559,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.60283,
    "c": 0.206,
    "h": 295.3
  },
  "luminance": 0.19636
}

Semantic roles & 50–950 ramp

primary
#8E5DEC
secondary
#DAEBBA
accent
#DB0A94
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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