#9D78EA#9D78EA

#9D78EA is a light, vivid violet. Relative luminance 0.265; OKLCH L 65.8% C 0.166 H 296.5°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9D78EA
RGBrgb(157, 120, 234)
HSLhsl(259, 73%, 69%)
HSVhsv(259, 49%, 92%)
CMYKcmyk(32.9%, 48.7%, 0%, 8.2%)
CIE-LABlab(58.55, 38.65, -52.75)
CIE-LCHlch(58.55, 65.39, 306.23°)
OKLaboklab(65.85% 0.0743 -0.1487)
OKLCHoklch(65.85% 0.166 296.5)
XYZxyz(35.4687, 26.5411, 81.0802)
Luminance0.2654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D78EA #C5EA78
analogous
#788CEA #9D78EA #D678EA
triadic
#9D78EA #EA9D78 #78EA9D
tetradic
#9D78EA #EA788C #C5EA78 #78EAD6
square
#9D78EA #EA788C #C5EA78 #78EAD6
split-complementary
#9D78EA #EAD678 #8CEA78
monochromatic
#561FC8 #7743E2 #9D78EA #C3ADF2 #EAE2FA

Accessibility & contrast

On white

3.33
#9D78EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#9D78EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D78EA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D78EA#FFFFFF#000000##000000
##9D78EA1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#588BE7
Tritanopia (blue-blind)
#8C8EA6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d78ea;
/* rgb */ color: rgb(157, 120, 234);
/* oklch */ color: oklch(65.8% 0.166 296.5);
Tailwind
colors: {
  custom: {
    50: '#bda0f1',
    500: '#9d78ea',
    950: '#000000',
  },
}
SCSS
$custom: #9d78ea;
$custom-light: #bda0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d78ea",
  "rgb": {
    "r": 157,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 259.474,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.65847,
    "c": 0.16624,
    "h": 296.5
  },
  "luminance": 0.26542
}

Semantic roles & 50–950 ramp

primary
#9D78EA
secondary
#E5EFCE
accent
#D51095
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9D78EA

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

Preview Lab → · Contrast checker → · Palette generator →

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