#9878EB#9878EB

#9878EB is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.4% C 0.167 H 294.1°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9878EB
RGBrgb(152, 120, 235)
HSLhsl(257, 74%, 70%)
HSVhsv(257, 49%, 92%)
CMYKcmyk(35.3%, 48.9%, 0%, 7.8%)
CIE-LABlab(58.14, 37.65, -53.99)
CIE-LCHlch(58.14, 65.82, 304.89°)
OKLaboklab(65.45% 0.0683 -0.1525)
OKLCHoklch(65.45% 0.167 294.1)
XYZxyz(34.6569, 26.1058, 81.7941)
Luminance0.2611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878EB #CBEB78
analogous
#7891EB #9878EB #D278EB
triadic
#9878EB #EB9878 #78EB98
tetradic
#9878EB #EB7891 #CBEB78 #78EBD2
square
#9878EB #EB7891 #CBEB78 #78EBD2
split-complementary
#9878EB #EBD278 #91EB78
monochromatic
#4E1ECB #6F43E3 #9878EB #C1ADF3 #E9E3FB

Accessibility & contrast

On white

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

On black

6.22
#9878EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878EB
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878EB#FFFFFF#000000##000000
##9878EB1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8DEF
Deuteranopia (green-blind)
#548AE8
Tritanopia (blue-blind)
#848FA6
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9878eb;
/* rgb */ color: rgb(152, 120, 235);
/* oklch */ color: oklch(65.4% 0.167 294.1);
Tailwind
colors: {
  custom: {
    50: '#ba9ff2',
    500: '#9878eb',
    950: '#000000',
  },
}
SCSS
$custom: #9878eb;
$custom-light: #ba9ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#9878eb",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 256.696,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.65448,
    "c": 0.16708,
    "h": 294.1
  },
  "luminance": 0.26107
}

Semantic roles & 50–950 ramp

primary
#9878EB
secondary
#E7F0CF
accent
#D60F9F
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9878EB

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

Preview Lab → · Contrast checker → · Palette generator →

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