#9878EE#9878EE

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

Color values

HEX#9878EE
RGBrgb(152, 120, 238)
HSLhsl(256, 78%, 70%)
HSVhsv(256, 50%, 93%)
CMYKcmyk(36.1%, 49.6%, 0%, 6.7%)
CIE-LABlab(58.30, 38.43, -55.39)
CIE-LCHlch(58.30, 67.42, 304.75°)
OKLaboklab(65.63% 0.0686 -0.1566)
OKLCHoklch(65.63% 0.171 293.6)
XYZxyz(35.0940, 26.2806, 84.0960)
Luminance0.2628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878EE #CEEE78
analogous
#7893EE #9878EE #D378EE
triadic
#9878EE #EE9878 #78EE98
tetradic
#9878EE #EE7893 #CEEE78 #78EED3
square
#9878EE #EE7893 #CEEE78 #78EED3
split-complementary
#9878EE #EED378 #93EE78
monochromatic
#4C1AD1 #6F42E7 #9878EE #C1AEF5 #EAE4FC

Accessibility & contrast

On white

3.36
#9878EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#9878EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878EE
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878EE#FFFFFF#000000##000000
##9878EE1.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF2
Deuteranopia (green-blind)
#518AEB
Tritanopia (blue-blind)
#838FA8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9878ee;
/* rgb */ color: rgb(152, 120, 238);
/* oklch */ color: oklch(65.6% 0.171 293.6);
Tailwind
colors: {
  custom: {
    50: '#ba9ff4',
    500: '#9878ee',
    950: '#000000',
  },
}
SCSS
$custom: #9878ee;
$custom-light: #ba9ff4;
$custom-dark: #000000;
JSON
{
  "hex": "#9878ee",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 238
  },
  "hsl": {
    "h": 256.271,
    "s": 77.632,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65625,
    "c": 0.17095,
    "h": 293.6
  },
  "luminance": 0.26281
}

Semantic roles & 50–950 ramp

primary
#9878EE
secondary
#E8F1D1
accent
#DA0CA2
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9878EE

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

Preview Lab → · Contrast checker → · Palette generator →

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