#9A78EB#9A78EB

#9A78EB is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.6% C 0.167 H 295.0°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9A78EB
RGBrgb(154, 120, 235)
HSLhsl(258, 74%, 70%)
HSVhsv(258, 49%, 92%)
CMYKcmyk(34.5%, 48.9%, 0%, 7.8%)
CIE-LABlab(58.32, 38.15, -53.68)
CIE-LCHlch(58.32, 65.86, 305.40°)
OKLaboklab(65.63% 0.0707 -0.1515)
OKLCHoklch(65.63% 0.167 295)
XYZxyz(35.0345, 26.3005, 81.8118)
Luminance0.2630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A78EB #C9EB78
analogous
#7890EB #9A78EB #D478EB
triadic
#9A78EB #EB9A78 #78EB9A
tetradic
#9A78EB #EB7890 #C9EB78 #78EBD4
square
#9A78EB #EB7890 #C9EB78 #78EBD4
split-complementary
#9A78EB #EBD478 #90EB78
monochromatic
#511ECB #7243E3 #9A78EB #C2ADF3 #EAE3FB

Accessibility & contrast

On white

3.35
#9A78EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#9A78EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A78EB
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A78EB#FFFFFF#000000##000000
##9A78EB1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DEF
Deuteranopia (green-blind)
#558BE8
Tritanopia (blue-blind)
#878EA6
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9a78eb;
/* rgb */ color: rgb(154, 120, 235);
/* oklch */ color: oklch(65.6% 0.167 295.0);
Tailwind
colors: {
  custom: {
    50: '#bb9ff2',
    500: '#9a78eb',
    950: '#000000',
  },
}
SCSS
$custom: #9a78eb;
$custom-light: #bb9ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a78eb",
  "rgb": {
    "r": 154,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 257.739,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.65629,
    "c": 0.16723,
    "h": 295
  },
  "luminance": 0.26301
}

Semantic roles & 50–950 ramp

primary
#9A78EB
secondary
#E6F0CF
accent
#D60F9B
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9A78EB

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

Preview Lab → · Contrast checker → · Palette generator →

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