#8E5DF7#8E5DF7

#8E5DF7 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.1% C 0.219 H 293.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#8E5DF7
RGBrgb(142, 93, 247)
HSLhsl(259, 91%, 67%)
HSVhsv(259, 62%, 97%)
CMYKcmyk(42.5%, 62.3%, 0%, 3.1%)
CIE-LABlab(52.17, 53.48, -70.32)
CIE-LCHlch(52.17, 88.34, 307.25°)
OKLaboklab(61.06% 0.0873 -0.2008)
OKLCHoklch(61.06% 0.219 293.5)
XYZxyz(31.8536, 20.2940, 90.2165)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E5DF7 #C6F75D
analogous
#5D79F7 #8E5DF7 #DB5DF7
triadic
#8E5DF7 #F78E5D #5DF78E
tetradic
#8E5DF7 #F75D79 #C6F75D #5DF7DB
square
#8E5DF7 #F75D79 #C6F75D #5DF7DB
split-complementary
#8E5DF7 #F7DB5D #79F75D
monochromatic
#490ACF #6523F4 #8E5DF7 #B797FA #DFD2FD

Accessibility & contrast

On white

4.15
#8E5DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#8E5DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E5DF7
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E5DF7#FFFFFF#000000##000000
##8E5DF71.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#007AF4
Tritanopia (blue-blind)
#7181A2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e5df7;
/* rgb */ color: rgb(142, 93, 247);
/* oklch */ color: oklch(61.1% 0.219 293.5);
Tailwind
colors: {
  custom: {
    50: '#b68dfb',
    500: '#8e5df7',
    950: '#000000',
  },
}
SCSS
$custom: #8e5df7;
$custom-light: #b68dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e5df7",
  "rgb": {
    "r": 142,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 259.091,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.61062,
    "c": 0.21893,
    "h": 293.5
  },
  "luminance": 0.20295
}

Semantic roles & 50–950 ramp

primary
#8E5DF7
secondary
#E1F1BF
accent
#E6009C
background
#FBF8FF
surface
#F7F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8E5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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