#9F78FB#9F78FB

#9F78FB is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.0% C 0.188 H 294.5°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#9F78FB
RGBrgb(159, 120, 251)
HSLhsl(258, 94%, 73%)
HSVhsv(258, 52%, 98%)
CMYKcmyk(36.7%, 52.2%, 0%, 1.6%)
CIE-LABlab(59.68, 43.50, -60.35)
CIE-LCHlch(59.68, 74.39, 305.78°)
OKLaboklab(67.04% 0.078 -0.1709)
OKLCHoklch(67.04% 0.188 294.5)
XYZxyz(38.4226, 27.7681, 94.5835)
Luminance0.2777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F78FB #D4FB78
analogous
#7892FB #9F78FB #E178FB
triadic
#9F78FB #FB9F78 #78FB9F
tetradic
#9F78FB #FB7892 #D4FB78 #78FBE1
square
#9F78FB #FB7892 #D4FB78 #78FBE1
split-complementary
#9F78FB #FBE178 #92FB78
monochromatic
#4D07F1 #753DF9 #9F78FB #C9B3FD #EAE1FE

Accessibility & contrast

On white

3.20
#9F78FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#9F78FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F78FB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F78FB#FFFFFF#000000##000000
##9F78FB1.003.206.556.55
#FFFFFF3.201.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4191FF
Deuteranopia (green-blind)
#4A8EF8
Tritanopia (blue-blind)
#8993AE
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #9f78fb;
/* rgb */ color: rgb(159, 120, 251);
/* oklch */ color: oklch(67.0% 0.188 294.5);
Tailwind
colors: {
  custom: {
    50: '#c0a0fd',
    500: '#9f78fb',
    950: '#000000',
  },
}
SCSS
$custom: #9f78fb;
$custom-light: #c0a0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f78fb",
  "rgb": {
    "r": 159,
    "g": 120,
    "b": 251
  },
  "hsl": {
    "h": 257.863,
    "s": 94.245,
    "l": 72.745
  },
  "oklch": {
    "l": 0.67039,
    "c": 0.18789,
    "h": 294.5
  },
  "luminance": 0.27769
}

Semantic roles & 50–950 ramp

primary
#9F78FB
secondary
#ECF6D5
accent
#E600A1
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130F18
muted
#827E86

Preview Lab

Preview with #9F78FB

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

Preview Lab → · Contrast checker → · Palette generator →

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