#8E5CE4#8E5CE4

#8E5CE4 is a mid, vivid violet. Relative luminance 0.190; OKLCH L 59.6% C 0.198 H 296.9°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8E5CE4
RGBrgb(142, 92, 228)
HSLhsl(262, 72%, 63%)
HSVhsv(262, 60%, 89%)
CMYKcmyk(37.7%, 59.6%, 0%, 10.6%)
CIE-LABlab(50.69, 49.06, -62.05)
CIE-LCHlch(50.69, 79.11, 308.33°)
OKLaboklab(59.59% 0.0896 -0.1764)
OKLCHoklch(59.59% 0.198 296.9)
XYZxyz(28.9825, 19.0060, 75.5253)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5CE4 #B2E45C
analogous
#5C6EE4 #8E5CE4 #D25CE4
triadic
#8E5CE4 #E48E5C #5CE48E
tetradic
#8E5CE4 #E45C6E #B2E45C #5CE4D2
square
#8E5CE4 #E45C6E #B2E45C #5CE4D2
split-complementary
#8E5CE4 #E4D25C #6EE45C
monochromatic
#501CAA #6A27DB #8E5CE4 #B291ED #D7C5F5

Accessibility & contrast

On white

4.37
#8E5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#8E5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5CE4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5CE4#FFFFFF#000000##000000
##8E5CE41.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#2077E1
Tritanopia (blue-blind)
#797A97
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8e5ce4;
/* rgb */ color: rgb(142, 92, 228);
/* oklch */ color: oklch(59.6% 0.198 296.9);
Tailwind
colors: {
  custom: {
    50: '#b48ced',
    500: '#8e5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #8e5ce4;
$custom-light: #b48ced;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5ce4",
  "rgb": {
    "r": 142,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 262.059,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59586,
    "c": 0.19788,
    "h": 296.9
  },
  "luminance": 0.19007
}

Semantic roles & 50–950 ramp

primary
#8E5CE4
secondary
#D4E7B5
accent
#D4128C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #8E5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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