#9878CA#9878CA

#9878CA is a light, vivid violet. Relative luminance 0.244; OKLCH L 63.6% C 0.124 H 300.9°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#9878CA
RGBrgb(152, 120, 202)
HSLhsl(263, 44%, 63%)
HSVhsv(263, 41%, 79%)
CMYKcmyk(24.8%, 40.6%, 0%, 20.8%)
CIE-LABlab(56.46, 29.33, -38.10)
CIE-LCHlch(56.46, 48.08, 307.59°)
OKLaboklab(63.64% 0.0636 -0.1062)
OKLCHoklch(63.64% 0.124 300.9)
XYZxyz(30.3237, 24.3725, 58.9725)
Luminance0.2437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878CA #AACA78
analogous
#7881CA #9878CA #C178CA
triadic
#9878CA #CA9878 #78CA98
tetradic
#9878CA #CA7881 #AACA78 #78CAC1
square
#9878CA #CA7881 #AACA78 #78CAC1
split-complementary
#9878CA #CAC178 #81CA78
monochromatic
#5A388F #764CB9 #9878CA #BAA4DB #DBD0ED

Accessibility & contrast

On white

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

On black

5.87
#9878CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878CA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878CA#FFFFFF#000000##000000
##9878CA1.003.575.875.87
#FFFFFF3.571.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6387CD
Deuteranopia (green-blind)
#6987C8
Tritanopia (blue-blind)
#8F8697
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9878ca;
/* rgb */ color: rgb(152, 120, 202);
/* oklch */ color: oklch(63.6% 0.124 300.9);
Tailwind
colors: {
  custom: {
    50: '#b89fda',
    500: '#9878ca',
    950: '#000000',
  },
}
SCSS
$custom: #9878ca;
$custom-light: #b89fda;
$custom-dark: #000000;
JSON
{
  "hex": "#9878ca",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 263.415,
    "s": 43.617,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6364,
    "c": 0.1238,
    "h": 300.9
  },
  "luminance": 0.24373
}

Semantic roles & 50–950 ramp

primary
#9878CA
secondary
#D2DEC0
accent
#B72F82
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9878CA

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

Preview Lab → · Contrast checker → · Palette generator →

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