#9878EA#9878EA

#9878EA is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.4% C 0.166 H 294.3°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9878EA
RGBrgb(152, 120, 234)
HSLhsl(257, 73%, 69%)
HSVhsv(257, 49%, 92%)
CMYKcmyk(35%, 48.7%, 0%, 8.2%)
CIE-LABlab(58.08, 37.39, -53.52)
CIE-LCHlch(58.08, 65.28, 304.94°)
OKLaboklab(65.39% 0.0682 -0.1511)
OKLCHoklch(65.39% 0.166 294.3)
XYZxyz(34.5128, 26.0482, 81.0354)
Luminance0.2605 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878EA #CAEA78
analogous
#7891EA #9878EA #D178EA
triadic
#9878EA #EA9878 #78EA98
tetradic
#9878EA #EA7891 #CAEA78 #78EAD1
square
#9878EA #EA7891 #CAEA78 #78EAD1
split-complementary
#9878EA #EAD178 #91EA78
monochromatic
#4F1FC8 #7043E2 #9878EA #C0ADF2 #E9E2FA

Accessibility & contrast

On white

3.38
#9878EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#9878EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878EA
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878EA#FFFFFF#000000##000000
##9878EA1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DEE
Deuteranopia (green-blind)
#548AE7
Tritanopia (blue-blind)
#858EA6
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9878ea;
/* rgb */ color: rgb(152, 120, 234);
/* oklch */ color: oklch(65.4% 0.166 294.3);
Tailwind
colors: {
  custom: {
    50: '#ba9ff1',
    500: '#9878ea',
    950: '#000000',
  },
}
SCSS
$custom: #9878ea;
$custom-light: #ba9ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#9878ea",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 234
  },
  "hsl": {
    "h": 256.842,
    "s": 73.077,
    "l": 69.412
  },
  "oklch": {
    "l": 0.6539,
    "c": 0.16579,
    "h": 294.3
  },
  "luminance": 0.26049
}

Semantic roles & 50–950 ramp

primary
#9878EA
secondary
#E6EFCE
accent
#D5109E
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9878EA

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

Preview Lab → · Contrast checker → · Palette generator →

#9878EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva