#8E56EC#8E56EC

#8E56EC is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.3% C 0.215 H 296.4°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#8E56EC
RGBrgb(142, 86, 236)
HSLhsl(262, 80%, 63%)
HSVhsv(262, 64%, 93%)
CMYKcmyk(39.8%, 63.6%, 0%, 7.5%)
CIE-LABlab(50.05, 54.28, -67.59)
CIE-LCHlch(50.05, 86.69, 308.77°)
OKLaboklab(59.29% 0.0957 -0.1927)
OKLCHoklch(59.29% 0.215 296.4)
XYZxyz(29.6195, 18.4619, 81.3436)
Luminance0.1846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E56EC #B4EC56
analogous
#5669EC #8E56EC #D956EC
triadic
#8E56EC #EC8E56 #56EC8E
tetradic
#8E56EC #EC5669 #B4EC56 #56ECD9
square
#8E56EC #EC5669 #B4EC56 #56ECD9
split-complementary
#8E56EC #ECD956 #69EC56
monochromatic
#5014B3 #691FE6 #8E56EC #B38DF2 #D8C4F8

Accessibility & contrast

On white

4.48
#8E56EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#8E56EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E56EC
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E56EC#FFFFFF#000000##000000
##8E56EC1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0075E9
Tritanopia (blue-blind)
#767899
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8e56ec;
/* rgb */ color: rgb(142, 86, 236);
/* oklch */ color: oklch(59.3% 0.215 296.4);
Tailwind
colors: {
  custom: {
    50: '#b589f3',
    500: '#8e56ec',
    950: '#000000',
  },
}
SCSS
$custom: #8e56ec;
$custom-light: #b589f3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e56ec",
  "rgb": {
    "r": 142,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 262.4,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59289,
    "c": 0.21519,
    "h": 296.4
  },
  "luminance": 0.18462
}

Semantic roles & 50–950 ramp

primary
#8E56EC
secondary
#D6EAB4
accent
#DC098D
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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