#8E64DB#8E64DB

#8E64DB is a mid, vivid violet. Relative luminance 0.200; OKLCH L 60.2% C 0.176 H 297.1°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8E64DB
RGBrgb(142, 100, 219)
HSLhsl(261, 62%, 63%)
HSVhsv(261, 54%, 86%)
CMYKcmyk(35.2%, 54.3%, 0%, 14.1%)
CIE-LABlab(51.81, 42.34, -55.17)
CIE-LCHlch(51.81, 69.54, 307.51°)
OKLaboklab(60.23% 0.08 -0.1562)
OKLCHoklch(60.23% 0.176 297.1)
XYZxyz(28.4955, 19.9792, 69.3592)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E64DB #B1DB64
analogous
#6476DB #8E64DB #C964DB
triadic
#8E64DB #DB8E64 #64DB8E
tetradic
#8E64DB #DB6476 #B1DB64 #64DBC9
square
#8E64DB #DB6476 #B1DB64 #64DBC9
split-complementary
#8E64DB #DBC964 #76DB64
monochromatic
#5025A0 #6A32CF #8E64DB #B296E7 #D6C7F2

Accessibility & contrast

On white

4.20
#8E64DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8E64DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E64DB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E64DB#FFFFFF#000000##000000
##8E64DB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#317CDF
Deuteranopia (green-blind)
#3E7AD8
Tritanopia (blue-blind)
#7C7C96
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8e64db;
/* rgb */ color: rgb(142, 100, 219);
/* oklch */ color: oklch(60.2% 0.176 297.1);
Tailwind
colors: {
  custom: {
    50: '#b391e7',
    500: '#8e64db',
    950: '#000000',
  },
}
SCSS
$custom: #8e64db;
$custom-light: #b391e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e64db",
  "rgb": {
    "r": 142,
    "g": 100,
    "b": 219
  },
  "hsl": {
    "h": 261.176,
    "s": 62.304,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60228,
    "c": 0.17552,
    "h": 297.1
  },
  "luminance": 0.1998
}

Semantic roles & 50–950 ramp

primary
#8E64DB
secondary
#D4E3B8
accent
#CA1B8C
background
#FBF9FE
surface
#F6F1FC
border
#D0CBD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #8E64DB

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

Preview Lab → · Contrast checker → · Palette generator →

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