#8E5DEB#8E5DEB

#8E5DEB is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.2% C 0.205 H 295.5°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8E5DEB
RGBrgb(142, 93, 235)
HSLhsl(261, 78%, 64%)
HSVhsv(261, 60%, 92%)
CMYKcmyk(39.6%, 60.4%, 0%, 7.8%)
CIE-LABlab(51.36, 50.34, -64.92)
CIE-LCHlch(51.36, 82.15, 307.79°)
OKLaboklab(60.21% 0.0881 -0.1849)
OKLCHoklch(60.21% 0.205 295.5)
XYZxyz(30.0611, 19.5770, 80.7761)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5DEB #BAEB5D
analogous
#5D73EB #8E5DEB #D55DEB
triadic
#8E5DEB #EB8E5D #5DEB8E
tetradic
#8E5DEB #EB5D73 #BAEB5D #5DEBD5
square
#8E5DEB #EB5D73 #BAEB5D #5DEBD5
split-complementary
#8E5DEB #EBD55D #73EB5D
monochromatic
#4E17B7 #6827E4 #8E5DEB #B493F2 #DACAF8

Accessibility & contrast

On white

4.27
#8E5DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#8E5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5DEB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5DEB#FFFFFF#000000##000000
##8E5DEB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0D78E8
Tritanopia (blue-blind)
#767C9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e5deb;
/* rgb */ color: rgb(142, 93, 235);
/* oklch */ color: oklch(60.2% 0.205 295.5);
Tailwind
colors: {
  custom: {
    50: '#b58df2',
    500: '#8e5deb',
    950: '#000000',
  },
}
SCSS
$custom: #8e5deb;
$custom-light: #b58df2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5deb",
  "rgb": {
    "r": 142,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 260.704,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60214,
    "c": 0.20482,
    "h": 295.5
  },
  "luminance": 0.19578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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