#9A78EE#9A78EE

#9A78EE is a light, vivid violet. Relative luminance 0.265; OKLCH L 65.8% C 0.171 H 294.5°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9A78EE
RGBrgb(154, 120, 238)
HSLhsl(257, 78%, 70%)
HSVhsv(257, 50%, 93%)
CMYKcmyk(35.3%, 49.6%, 0%, 6.7%)
CIE-LABlab(58.49, 38.93, -55.09)
CIE-LCHlch(58.49, 67.45, 305.25°)
OKLaboklab(65.81% 0.071 -0.1557)
OKLCHoklch(65.81% 0.171 294.5)
XYZxyz(35.4715, 26.4753, 84.1137)
Luminance0.2648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A78EE #CCEE78
analogous
#7891EE #9A78EE #D578EE
triadic
#9A78EE #EE9A78 #78EE9A
tetradic
#9A78EE #EE7891 #CCEE78 #78EED5
square
#9A78EE #EE7891 #CCEE78 #78EED5
split-complementary
#9A78EE #EED578 #91EE78
monochromatic
#4F1AD1 #7142E7 #9A78EE #C3AEF5 #EBE4FC

Accessibility & contrast

On white

3.34
#9A78EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9A78EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A78EE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A78EE#FFFFFF#000000##000000
##9A78EE1.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8EF2
Deuteranopia (green-blind)
#528BEB
Tritanopia (blue-blind)
#868FA8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9a78ee;
/* rgb */ color: rgb(154, 120, 238);
/* oklch */ color: oklch(65.8% 0.171 294.5);
Tailwind
colors: {
  custom: {
    50: '#bb9ff4',
    500: '#9a78ee',
    950: '#000000',
  },
}
SCSS
$custom: #9a78ee;
$custom-light: #bb9ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a78ee",
  "rgb": {
    "r": 154,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 257.288,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65805,
    "c": 0.17108,
    "h": 294.5
  },
  "luminance": 0.26476
}

Semantic roles & 50–950 ramp

primary
#9A78EE
secondary
#E8F1D1
accent
#DA0C9E
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9A78EE

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

Preview Lab → · Contrast checker → · Palette generator →

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