#9878D9#9878D9

#9878D9 is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.4% C 0.144 H 297.4°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9878D9
RGBrgb(152, 120, 217)
HSLhsl(260, 56%, 66%)
HSVhsv(260, 45%, 85%)
CMYKcmyk(30%, 44.7%, 0%, 14.9%)
CIE-LABlab(57.19, 33.04, -45.42)
CIE-LCHlch(57.19, 56.16, 306.03°)
OKLaboklab(64.43% 0.0662 -0.1275)
OKLCHoklch(64.43% 0.144 297.4)
XYZxyz(32.1867, 25.1178, 68.7847)
Luminance0.2512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878D9 #B9D978
analogous
#7888D9 #9878D9 #C878D9
triadic
#9878D9 #D99878 #78D998
tetradic
#9878D9 #D97888 #B9D978 #78D9C8
square
#9878D9 #D97888 #B9D978 #78D9C8
split-complementary
#9878D9 #D9C878 #88D978
monochromatic
#572FA7 #7448CC #9878D9 #BCA8E6 #E1D8F4

Accessibility & contrast

On white

3.49
#9878D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#9878D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878D9
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878D9#FFFFFF#000000##000000
##9878D91.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8ADD
Deuteranopia (green-blind)
#6188D7
Tritanopia (blue-blind)
#8A8A9E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9878d9;
/* rgb */ color: rgb(152, 120, 217);
/* oklch */ color: oklch(64.4% 0.144 297.4);
Tailwind
colors: {
  custom: {
    50: '#b99fe5',
    500: '#9878d9',
    950: '#000000',
  },
}
SCSS
$custom: #9878d9;
$custom-light: #b99fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#9878d9",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 217
  },
  "hsl": {
    "h": 259.794,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6443,
    "c": 0.1436,
    "h": 297.4
  },
  "luminance": 0.25118
}

Semantic roles & 50–950 ramp

primary
#9878D9
secondary
#DCE6C6
accent
#C4228E
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9878D9

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

Preview Lab → · Contrast checker → · Palette generator →

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