#8E5DF4#8E5DF4

#8E5DF4 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.215 H 294.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8E5DF4
RGBrgb(142, 93, 244)
HSLhsl(259, 87%, 66%)
HSVhsv(259, 62%, 96%)
CMYKcmyk(41.8%, 61.9%, 0%, 4.3%)
CIE-LABlab(51.96, 52.69, -68.98)
CIE-LCHlch(51.96, 86.80, 307.37°)
OKLaboklab(60.85% 0.0876 -0.1968)
OKLCHoklch(60.85% 0.215 294)
XYZxyz(31.3944, 20.1103, 87.7980)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5DF4 #C3F45D
analogous
#5D77F4 #8E5DF4 #D95DF4
triadic
#8E5DF4 #F48E5D #5DF48E
tetradic
#8E5DF4 #F45D77 #C3F45D #5DF4D9
square
#8E5DF4 #F45D77 #C3F45D #5DF4D9
split-complementary
#8E5DF4 #F4D95D #77F45D
monochromatic
#4A0EC9 #6624F0 #8E5DF4 #B696F8 #DED0FC

Accessibility & contrast

On white

4.18
#8E5DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8E5DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5DF4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5DF4#FFFFFF#000000##000000
##8E5DF41.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF9
Deuteranopia (green-blind)
#0079F1
Tritanopia (blue-blind)
#7280A0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e5df4;
/* rgb */ color: rgb(142, 93, 244);
/* oklch */ color: oklch(60.8% 0.215 294.0);
Tailwind
colors: {
  custom: {
    50: '#b68df9',
    500: '#8e5df4',
    950: '#000000',
  },
}
SCSS
$custom: #8e5df4;
$custom-light: #b68df9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5df4",
  "rgb": {
    "r": 142,
    "g": 93,
    "b": 244
  },
  "hsl": {
    "h": 259.47,
    "s": 87.283,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60847,
    "c": 0.21542,
    "h": 294
  },
  "luminance": 0.20111
}

Semantic roles & 50–950 ramp

primary
#8E5DF4
secondary
#DFEFBE
accent
#E4029A
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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