#9878EF#9878EF

#9878EF is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.7% C 0.172 H 293.5°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9878EF
RGBrgb(152, 120, 239)
HSLhsl(256, 79%, 70%)
HSVhsv(256, 50%, 94%)
CMYKcmyk(36.4%, 49.8%, 0%, 6.3%)
CIE-LABlab(58.36, 38.70, -55.86)
CIE-LCHlch(58.36, 67.95, 304.71°)
OKLaboklab(65.68% 0.0686 -0.158)
OKLCHoklch(65.68% 0.172 293.5)
XYZxyz(35.2413, 26.3396, 84.8719)
Luminance0.2634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878EF #CFEF78
analogous
#7894EF #9878EF #D378EF
triadic
#9878EF #EF9878 #78EF98
tetradic
#9878EF #EF7894 #CFEF78 #78EFD3
square
#9878EF #EF7894 #CFEF78 #78EFD3
split-complementary
#9878EF #EFD378 #94EF78
monochromatic
#4B19D4 #6E41E9 #9878EF #C2AFF5 #EAE4FC

Accessibility & contrast

On white

3.35
#9878EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9878EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878EF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878EF#FFFFFF#000000##000000
##9878EF1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A8EF3
Deuteranopia (green-blind)
#508AEC
Tritanopia (blue-blind)
#8390A8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9878ef;
/* rgb */ color: rgb(152, 120, 239);
/* oklch */ color: oklch(65.7% 0.172 293.5);
Tailwind
colors: {
  custom: {
    50: '#ba9ff5',
    500: '#9878ef',
    950: '#000000',
  },
}
SCSS
$custom: #9878ef;
$custom-light: #ba9ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#9878ef",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 256.134,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.65684,
    "c": 0.17224,
    "h": 293.5
  },
  "luminance": 0.2634
}

Semantic roles & 50–950 ramp

primary
#9878EF
secondary
#E9F2D1
accent
#DB0AA3
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9878EF

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

Preview Lab → · Contrast checker → · Palette generator →

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