#8E5CE2#8E5CE2

#8E5CE2 is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.5% C 0.196 H 297.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8E5CE2
RGBrgb(142, 92, 226)
HSLhsl(262, 70%, 62%)
HSVhsv(262, 59%, 89%)
CMYKcmyk(37.2%, 59.3%, 0%, 11.4%)
CIE-LABlab(50.56, 48.55, -61.13)
CIE-LCHlch(50.56, 78.06, 308.46°)
OKLaboklab(59.45% 0.0896 -0.1737)
OKLCHoklch(59.45% 0.196 297.3)
XYZxyz(28.7065, 18.8956, 74.0716)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5CE2 #B0E25C
analogous
#5C6DE2 #8E5CE2 #D15CE2
triadic
#8E5CE2 #E28E5C #5CE28E
tetradic
#8E5CE2 #E25C6D #B0E25C #5CE2D1
square
#8E5CE2 #E25C6D #B0E25C #5CE2D1
split-complementary
#8E5CE2 #E2D15C #6DE25C
monochromatic
#501EA6 #6A28D9 #8E5CE2 #B290EB #D6C4F4

Accessibility & contrast

On white

4.39
#8E5CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#8E5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5CE2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5CE2#FFFFFF#000000##000000
##8E5CE21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E6
Deuteranopia (green-blind)
#2577DF
Tritanopia (blue-blind)
#7A7996
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8e5ce2;
/* rgb */ color: rgb(142, 92, 226);
/* oklch */ color: oklch(59.5% 0.196 297.3);
Tailwind
colors: {
  custom: {
    50: '#b48cec',
    500: '#8e5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #8e5ce2;
$custom-light: #b48cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5ce2",
  "rgb": {
    "r": 142,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 262.388,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.5945,
    "c": 0.19551,
    "h": 297.3
  },
  "luminance": 0.18896
}

Semantic roles & 50–950 ramp

primary
#8E5CE2
secondary
#D3E5B4
accent
#D2148B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8E5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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