#9E78EB#9E78EB

#9E78EB is a light, vivid violet. Relative luminance 0.267; OKLCH L 66.0% C 0.168 H 296.8°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9E78EB
RGBrgb(158, 120, 235)
HSLhsl(260, 74%, 70%)
HSVhsv(260, 49%, 92%)
CMYKcmyk(32.8%, 48.9%, 0%, 7.8%)
CIE-LABlab(58.70, 39.16, -53.06)
CIE-LCHlch(58.70, 65.95, 306.43°)
OKLaboklab(66% 0.0756 -0.1496)
OKLCHoklch(66% 0.168 296.8)
XYZxyz(35.8087, 26.6997, 81.8481)
Luminance0.2670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E78EB #C5EB78
analogous
#788CEB #9E78EB #D878EB
triadic
#9E78EB #EB9E78 #78EB9E
tetradic
#9E78EB #EB788C #C5EB78 #78EBD8
square
#9E78EB #EB788C #C5EB78 #78EBD8
split-complementary
#9E78EB #EBD878 #8CEB78
monochromatic
#571ECB #7843E3 #9E78EB #C4ADF3 #EBE3FB

Accessibility & contrast

On white

3.31
#9E78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9E78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E78EB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E78EB#FFFFFF#000000##000000
##9E78EB1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#508EEF
Deuteranopia (green-blind)
#588CE8
Tritanopia (blue-blind)
#8D8EA7
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9e78eb;
/* rgb */ color: rgb(158, 120, 235);
/* oklch */ color: oklch(66.0% 0.168 296.8);
Tailwind
colors: {
  custom: {
    50: '#bea0f2',
    500: '#9e78eb',
    950: '#000000',
  },
}
SCSS
$custom: #9e78eb;
$custom-light: #bea0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e78eb",
  "rgb": {
    "r": 158,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 259.826,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.65997,
    "c": 0.16763,
    "h": 296.8
  },
  "luminance": 0.267
}

Semantic roles & 50–950 ramp

primary
#9E78EB
secondary
#E5F0CF
accent
#D60F95
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9E78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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