#9878CC#9878CC

#9878CC is a light, vivid violet. Relative luminance 0.245; OKLCH L 63.7% C 0.126 H 300.4°. Best body text is #000000 at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#9878CC
RGBrgb(152, 120, 204)
HSLhsl(263, 45%, 64%)
HSVhsv(263, 41%, 80%)
CMYKcmyk(25.5%, 41.2%, 0%, 20%)
CIE-LABlab(56.55, 29.82, -39.08)
CIE-LCHlch(56.55, 49.16, 307.34°)
OKLaboklab(63.74% 0.064 -0.109)
OKLCHoklch(63.74% 0.126 300.4)
XYZxyz(30.5620, 24.4679, 60.2277)
Luminance0.2447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878CC #ACCC78
analogous
#7882CC #9878CC #C278CC
triadic
#9878CC #CC9878 #78CC98
tetradic
#9878CC #CC7882 #ACCC78 #78CCC2
square
#9878CC #CC7882 #ACCC78 #78CCC2
split-complementary
#9878CC #CCC278 #82CC78
monochromatic
#5A3792 #764CBB #9878CC #BAA4DD #DCD1EE

Accessibility & contrast

On white

3.56
#9878CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.89
#9878CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878CC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878CC#FFFFFF#000000##000000
##9878CC1.003.565.895.89
#FFFFFF3.561.0021.0021.00
#0000005.8921.001.001.00
##0000005.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CF
Deuteranopia (green-blind)
#6887CA
Tritanopia (blue-blind)
#8E8698
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9878cc;
/* rgb */ color: rgb(152, 120, 204);
/* oklch */ color: oklch(63.7% 0.126 300.4);
Tailwind
colors: {
  custom: {
    50: '#b89fdc',
    500: '#9878cc',
    950: '#000000',
  },
}
SCSS
$custom: #9878cc;
$custom-light: #b89fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9878cc",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 204
  },
  "hsl": {
    "h": 262.857,
    "s": 45.161,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63742,
    "c": 0.12645,
    "h": 300.4
  },
  "luminance": 0.24468
}

Semantic roles & 50–950 ramp

primary
#9878CC
secondary
#D3DFC1
accent
#B82D83
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9878CC

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

Preview Lab → · Contrast checker → · Palette generator →

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