#8E5CF8#8E5CF8

#8E5CF8 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.0% C 0.221 H 293.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8E5CF8
RGBrgb(142, 92, 248)
HSLhsl(259, 92%, 67%)
HSVhsv(259, 63%, 97%)
CMYKcmyk(42.7%, 62.9%, 0%, 2.7%)
CIE-LABlab(52.04, 54.27, -71.08)
CIE-LCHlch(52.04, 89.43, 307.36°)
OKLaboklab(60.99% 0.0883 -0.203)
OKLCHoklch(60.99% 0.221 293.5)
XYZxyz(31.9212, 20.1815, 91.0023)
Luminance0.2018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5CF8 #C6F85C
analogous
#5C78F8 #8E5CF8 #DC5CF8
triadic
#8E5CF8 #F88E5C #5CF88E
tetradic
#8E5CF8 #F85C78 #C6F85C #5CF8DC
square
#8E5CF8 #F85C78 #C6F85C #5CF8DC
split-complementary
#8E5CF8 #F8DC5C #78F85C
monochromatic
#4909D1 #6521F5 #8E5CF8 #B797FB #DFD1FD

Accessibility & contrast

On white

4.17
#8E5CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8E5CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5CF8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5CF8#FFFFFF#000000##000000
##8E5CF81.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFD
Deuteranopia (green-blind)
#0079F5
Tritanopia (blue-blind)
#7180A2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e5cf8;
/* rgb */ color: rgb(142, 92, 248);
/* oklch */ color: oklch(61.0% 0.221 293.5);
Tailwind
colors: {
  custom: {
    50: '#b68dfb',
    500: '#8e5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #8e5cf8;
$custom-light: #b68dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5cf8",
  "rgb": {
    "r": 142,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 259.231,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60992,
    "c": 0.22136,
    "h": 293.5
  },
  "luminance": 0.20182
}

Semantic roles & 50–950 ramp

primary
#8E5CF8
secondary
#E1F1BF
accent
#E6009C
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8E5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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