#9F78EB#9F78EB

#9F78EB is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.1% C 0.168 H 297.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9F78EB
RGBrgb(159, 120, 235)
HSLhsl(260, 74%, 70%)
HSVhsv(260, 49%, 92%)
CMYKcmyk(32.3%, 48.9%, 0%, 7.8%)
CIE-LABlab(58.79, 39.41, -52.91)
CIE-LCHlch(58.79, 65.97, 306.68°)
OKLaboklab(66.09% 0.0768 -0.1491)
OKLCHoklch(66.09% 0.168 297.2)
XYZxyz(36.0063, 26.8016, 81.8574)
Luminance0.2680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F78EB #C4EB78
analogous
#788BEB #9F78EB #D978EB
triadic
#9F78EB #EB9F78 #78EB9F
tetradic
#9F78EB #EB788B #C4EB78 #78EBD9
square
#9F78EB #EB788B #C4EB78 #78EBD9
split-complementary
#9F78EB #EBD978 #8BEB78
monochromatic
#591ECB #7943E3 #9F78EB #C5ADF3 #EBE3FB

Accessibility & contrast

On white

3.30
#9F78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9F78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F78EB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F78EB#FFFFFF#000000##000000
##9F78EB1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f78eb;
/* rgb */ color: rgb(159, 120, 235);
/* oklch */ color: oklch(66.1% 0.168 297.2);
Tailwind
colors: {
  custom: {
    50: '#bea0f2',
    500: '#9f78eb',
    950: '#000000',
  },
}
SCSS
$custom: #9f78eb;
$custom-light: #bea0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f78eb",
  "rgb": {
    "r": 159,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 260.348,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.6609,
    "c": 0.16776,
    "h": 297.2
  },
  "luminance": 0.26802
}

Semantic roles & 50–950 ramp

primary
#9F78EB
secondary
#E5F0CF
accent
#D60F93
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #9F78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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