#8E5CEA#8E5CEA

#8E5CEA is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.0% C 0.205 H 295.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8E5CEA
RGBrgb(142, 92, 234)
HSLhsl(261, 77%, 64%)
HSVhsv(261, 61%, 92%)
CMYKcmyk(39.3%, 60.7%, 0%, 8.2%)
CIE-LABlab(51.09, 50.61, -64.79)
CIE-LCHlch(51.09, 82.22, 308.00°)
OKLaboklab(60% 0.0893 -0.1845)
OKLCHoklch(60% 0.205 295.8)
XYZxyz(29.8299, 19.3450, 79.9883)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5CEA #B8EA5C
analogous
#5C71EA #8E5CEA #D55CEA
triadic
#8E5CEA #EA8E5C #5CEA8E
tetradic
#8E5CEA #EA5C71 #B8EA5C #5CEAD5
square
#8E5CEA #EA5C71 #B8EA5C #5CEAD5
split-complementary
#8E5CEA #EAD55C #71EA5C
monochromatic
#4F17B4 #6826E3 #8E5CEA #B492F1 #D9C8F8

Accessibility & contrast

On white

4.31
#8E5CEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8E5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5CEA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5CEA#FFFFFF#000000##000000
##8E5CEA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEF
Deuteranopia (green-blind)
#0D78E7
Tritanopia (blue-blind)
#777C9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e5cea;
/* rgb */ color: rgb(142, 92, 234);
/* oklch */ color: oklch(60.0% 0.205 295.8);
Tailwind
colors: {
  custom: {
    50: '#b58cf2',
    500: '#8e5cea',
    950: '#000000',
  },
}
SCSS
$custom: #8e5cea;
$custom-light: #b58cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5cea",
  "rgb": {
    "r": 142,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 261.127,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59998,
    "c": 0.20498,
    "h": 295.8
  },
  "luminance": 0.19346
}

Semantic roles & 50–950 ramp

primary
#8E5CEA
secondary
#D8EAB8
accent
#D90C91
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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