#9F78EA#9F78EA

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

Color values

HEX#9F78EA
RGBrgb(159, 120, 234)
HSLhsl(261, 73%, 69%)
HSVhsv(261, 49%, 92%)
CMYKcmyk(32.1%, 48.7%, 0%, 8.2%)
CIE-LABlab(58.74, 39.16, -52.44)
CIE-LCHlch(58.74, 65.45, 306.75°)
OKLaboklab(66.03% 0.0767 -0.1478)
OKLCHoklch(66.03% 0.166 297.4)
XYZxyz(35.8622, 26.7440, 81.0987)
Luminance0.2674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F78EA #C3EA78
analogous
#788AEA #9F78EA #D878EA
triadic
#9F78EA #EA9F78 #78EA9F
tetradic
#9F78EA #EA788A #C3EA78 #78EAD8
square
#9F78EA #EA788A #C3EA78 #78EAD8
split-complementary
#9F78EA #EAD878 #8AEA78
monochromatic
#591FC8 #7943E2 #9F78EA #C5ADF2 #EAE2FA

Accessibility & contrast

On white

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

On black

6.35
#9F78EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F78EA
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F78EA#FFFFFF#000000##000000
##9F78EA1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEE
Deuteranopia (green-blind)
#5A8CE7
Tritanopia (blue-blind)
#8F8EA6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f78ea;
/* rgb */ color: rgb(159, 120, 234);
/* oklch */ color: oklch(66.0% 0.166 297.4);
Tailwind
colors: {
  custom: {
    50: '#bea0f1',
    500: '#9f78ea',
    950: '#000000',
  },
}
SCSS
$custom: #9f78ea;
$custom-light: #bea0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f78ea",
  "rgb": {
    "r": 159,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 260.526,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.66033,
    "c": 0.16649,
    "h": 297.4
  },
  "luminance": 0.26744
}

Semantic roles & 50–950 ramp

primary
#9F78EA
secondary
#E4EFCE
accent
#D51092
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #9F78EA

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

Preview Lab → · Contrast checker → · Palette generator →

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