#9F78EE#9F78EE

#9F78EE is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.3% C 0.172 H 296.7°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9F78EE
RGBrgb(159, 120, 238)
HSLhsl(260, 78%, 70%)
HSVhsv(260, 50%, 93%)
CMYKcmyk(33.2%, 49.6%, 0%, 6.7%)
CIE-LABlab(58.95, 40.17, -54.32)
CIE-LCHlch(58.95, 67.56, 306.49°)
OKLaboklab(66.26% 0.0771 -0.1533)
OKLCHoklch(66.26% 0.172 296.7)
XYZxyz(36.4433, 26.9764, 84.1593)
Luminance0.2698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F78EE #C7EE78
analogous
#788CEE #9F78EE #DA78EE
triadic
#9F78EE #EE9F78 #78EE9F
tetradic
#9F78EE #EE788C #C7EE78 #78EEDA
square
#9F78EE #EE788C #C7EE78 #78EEDA
split-complementary
#9F78EE #EEDA78 #8CEE78
monochromatic
#571AD1 #7842E7 #9F78EE #C6AEF5 #ECE4FC

Accessibility & contrast

On white

3.28
#9F78EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#9F78EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F78EE
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F78EE#FFFFFF#000000##000000
##9F78EE1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8EF2
Deuteranopia (green-blind)
#568CEB
Tritanopia (blue-blind)
#8D8FA8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f78ee;
/* rgb */ color: rgb(159, 120, 238);
/* oklch */ color: oklch(66.3% 0.172 296.7);
Tailwind
colors: {
  custom: {
    50: '#bfa0f4',
    500: '#9f78ee',
    950: '#000000',
  },
}
SCSS
$custom: #9f78ee;
$custom-light: #bfa0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#9f78ee",
  "rgb": {
    "r": 159,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 259.831,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.66264,
    "c": 0.17156,
    "h": 296.7
  },
  "luminance": 0.26977
}

Semantic roles & 50–950 ramp

primary
#9F78EE
secondary
#E6F1D1
accent
#DA0C96
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #9F78EE

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

Preview Lab → · Contrast checker → · Palette generator →

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