#9878CB#9878CB

#9878CB is a light, vivid violet. Relative luminance 0.244; OKLCH L 63.7% C 0.125 H 300.7°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9878CB
RGBrgb(152, 120, 203)
HSLhsl(263, 44%, 63%)
HSVhsv(263, 41%, 80%)
CMYKcmyk(25.1%, 40.9%, 0%, 20.4%)
CIE-LABlab(56.51, 29.57, -38.59)
CIE-LCHlch(56.51, 48.62, 307.46°)
OKLaboklab(63.69% 0.0638 -0.1076)
OKLCHoklch(63.69% 0.125 300.7)
XYZxyz(30.4424, 24.4200, 59.5981)
Luminance0.2442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878CB #ABCB78
analogous
#7881CB #9878CB #C278CB
triadic
#9878CB #CB9878 #78CB98
tetradic
#9878CB #CB7881 #ABCB78 #78CBC2
square
#9878CB #CB7881 #ABCB78 #78CBC2
split-complementary
#9878CB #CBC278 #81CB78
monochromatic
#5A3891 #764CBA #9878CB #BAA4DC #DBD0ED

Accessibility & contrast

On white

3.57
#9878CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#9878CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878CB
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878CB#FFFFFF#000000##000000
##9878CB1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6287CE
Deuteranopia (green-blind)
#6987C9
Tritanopia (blue-blind)
#8F8698
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9878cb;
/* rgb */ color: rgb(152, 120, 203);
/* oklch */ color: oklch(63.7% 0.125 300.7);
Tailwind
colors: {
  custom: {
    50: '#b89fdb',
    500: '#9878cb',
    950: '#000000',
  },
}
SCSS
$custom: #9878cb;
$custom-light: #b89fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9878cb",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 203
  },
  "hsl": {
    "h": 263.133,
    "s": 44.385,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63691,
    "c": 0.12513,
    "h": 300.7
  },
  "luminance": 0.2442
}

Semantic roles & 50–950 ramp

primary
#9878CB
secondary
#D3DEC1
accent
#B82E82
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9878CB

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

Preview Lab → · Contrast checker → · Palette generator →

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