#9F78CA#9F78CA

#9F78CA is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.3% C 0.126 H 305.0°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9F78CA
RGBrgb(159, 120, 202)
HSLhsl(269, 44%, 63%)
HSVhsv(269, 41%, 79%)
CMYKcmyk(21.3%, 40.6%, 0%, 20.8%)
CIE-LABlab(57.14, 31.38, -36.98)
CIE-LCHlch(57.14, 48.50, 310.32°)
OKLaboklab(64.32% 0.0721 -0.1028)
OKLCHoklch(64.32% 0.126 305)
XYZxyz(31.6730, 25.0683, 59.0357)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F78CA #A3CA78
analogous
#787ACA #9F78CA #C878CA
triadic
#9F78CA #CA9F78 #78CA9F
tetradic
#9F78CA #CA787A #A3CA78 #78CAC8
square
#9F78CA #CA787A #A3CA78 #78CAC8
split-complementary
#9F78CA #CAC878 #7ACA78
monochromatic
#62388F #804CB9 #9F78CA #BEA4DB #DED0ED

Accessibility & contrast

On white

3.49
#9F78CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#9F78CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F78CA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F78CA#FFFFFF#000000##000000
##9F78CA1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6588CD
Deuteranopia (green-blind)
#6D89C8
Tritanopia (blue-blind)
#988597
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9f78ca;
/* rgb */ color: rgb(159, 120, 202);
/* oklch */ color: oklch(64.3% 0.126 305.0);
Tailwind
colors: {
  custom: {
    50: '#bd9fda',
    500: '#9f78ca',
    950: '#000000',
  },
}
SCSS
$custom: #9f78ca;
$custom-light: #bd9fda;
$custom-dark: #000000;
JSON
{
  "hex": "#9f78ca",
  "rgb": {
    "r": 159,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 268.537,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.64316,
    "c": 0.12556,
    "h": 305
  },
  "luminance": 0.25068
}

Semantic roles & 50–950 ramp

primary
#9F78CA
secondary
#D0DEC0
accent
#B72F76
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9F78CA

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

Preview Lab → · Contrast checker → · Palette generator →

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