#8E5CEC#8E5CEC

#8E5CEC is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.1% C 0.207 H 295.5°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8E5CEC
RGBrgb(142, 92, 236)
HSLhsl(261, 79%, 64%)
HSVhsv(261, 61%, 93%)
CMYKcmyk(39.8%, 61%, 0%, 7.5%)
CIE-LABlab(51.22, 51.13, -65.70)
CIE-LCHlch(51.22, 83.25, 307.89°)
OKLaboklab(60.14% 0.0892 -0.1872)
OKLCHoklch(60.14% 0.207 295.5)
XYZxyz(30.1188, 19.4606, 81.5100)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5CEC #BAEC5C
analogous
#5C72EC #8E5CEC #D65CEC
triadic
#8E5CEC #EC8E5C #5CEC8E
tetradic
#8E5CEC #EC5C72 #BAEC5C #5CECD6
square
#8E5CEC #EC5C72 #BAEC5C #5CECD6
split-complementary
#8E5CEC #ECD65C #72EC5C
monochromatic
#4E15B8 #6825E6 #8E5CEC #B493F2 #DACAF9

Accessibility & contrast

On white

4.29
#8E5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8E5CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5CEC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5CEC#FFFFFF#000000##000000
##8E5CEC1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF1
Deuteranopia (green-blind)
#0178E9
Tritanopia (blue-blind)
#767C9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e5cec;
/* rgb */ color: rgb(142, 92, 236);
/* oklch */ color: oklch(60.1% 0.207 295.5);
Tailwind
colors: {
  custom: {
    50: '#b58cf3',
    500: '#8e5cec',
    950: '#000000',
  },
}
SCSS
$custom: #8e5cec;
$custom-light: #b58cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5cec",
  "rgb": {
    "r": 142,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 260.833,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60138,
    "c": 0.20734,
    "h": 295.5
  },
  "luminance": 0.19461
}

Semantic roles & 50–950 ramp

primary
#8E5CEC
secondary
#DAEBB9
accent
#DB0A93
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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