#8E5CEB#8E5CEB

#8E5CEB is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.1% C 0.206 H 295.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8E5CEB
RGBrgb(142, 92, 235)
HSLhsl(261, 78%, 64%)
HSVhsv(261, 61%, 92%)
CMYKcmyk(39.6%, 60.9%, 0%, 7.8%)
CIE-LABlab(51.15, 50.87, -65.25)
CIE-LCHlch(51.15, 82.74, 307.94°)
OKLaboklab(60.07% 0.0892 -0.1858)
OKLCHoklch(60.07% 0.206 295.6)
XYZxyz(29.9739, 19.4026, 80.7470)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5CEB #B9EB5C
analogous
#5C72EB #8E5CEB #D65CEB
triadic
#8E5CEB #EB8E5C #5CEB8E
tetradic
#8E5CEB #EB5C72 #B9EB5C #5CEBD6
square
#8E5CEB #EB5C72 #B9EB5C #5CEBD6
split-complementary
#8E5CEB #EBD65C #72EB5C
monochromatic
#4E16B6 #6825E4 #8E5CEB #B493F2 #DAC9F8

Accessibility & contrast

On white

4.30
#8E5CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8E5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5CEB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5CEB#FFFFFF#000000##000000
##8E5CEB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0778E8
Tritanopia (blue-blind)
#777C9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e5ceb;
/* rgb */ color: rgb(142, 92, 235);
/* oklch */ color: oklch(60.1% 0.206 295.6);
Tailwind
colors: {
  custom: {
    50: '#b58cf2',
    500: '#8e5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #8e5ceb;
$custom-light: #b58cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5ceb",
  "rgb": {
    "r": 142,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 260.979,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.60068,
    "c": 0.20616,
    "h": 295.6
  },
  "luminance": 0.19403
}

Semantic roles & 50–950 ramp

primary
#8E5CEB
secondary
#D9EAB8
accent
#DA0B92
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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