#8E78EB#8E78EB

#8E78EB is a light, vivid violet. Relative luminance 0.252; OKLCH L 64.6% C 0.167 H 289.7°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8E78EB
RGBrgb(142, 120, 235)
HSLhsl(251, 74%, 70%)
HSVhsv(251, 49%, 92%)
CMYKcmyk(39.6%, 48.9%, 0%, 7.8%)
CIE-LABlab(57.25, 35.20, -55.45)
CIE-LCHlch(57.25, 65.68, 302.40°)
OKLaboklab(64.57% 0.0562 -0.157)
OKLCHoklch(64.57% 0.167 289.7)
XYZxyz(32.8631, 25.1809, 81.7101)
Luminance0.2518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E78EB #D5EB78
analogous
#789CEB #8E78EB #C778EB
triadic
#8E78EB #EB8E78 #78EB8E
tetradic
#8E78EB #EB789C #D5EB78 #78EBC7
square
#8E78EB #EB789C #D5EB78 #78EBC7
split-complementary
#8E78EB #EBC778 #9CEB78
monochromatic
#3F1ECB #6143E3 #8E78EB #BBADF3 #E7E3FB

Accessibility & contrast

On white

3.48
#8E78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#8E78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E78EB
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E78EB#FFFFFF#000000##000000
##8E78EB1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8CEF
Deuteranopia (green-blind)
#4C87E8
Tritanopia (blue-blind)
#758FA6
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8e78eb;
/* rgb */ color: rgb(142, 120, 235);
/* oklch */ color: oklch(64.6% 0.167 289.7);
Tailwind
colors: {
  custom: {
    50: '#b39ff2',
    500: '#8e78eb',
    950: '#000000',
  },
}
SCSS
$custom: #8e78eb;
$custom-light: #b39ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e78eb",
  "rgb": {
    "r": 142,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 251.478,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.64572,
    "c": 0.1668,
    "h": 289.7
  },
  "luminance": 0.25182
}

Semantic roles & 50–950 ramp

primary
#8E78EB
secondary
#EAF0CF
accent
#D60FB0
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#110E17
muted
#807E85

Preview Lab

Preview with #8E78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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