#9878CD#9878CD

#9878CD is a light, vivid violet. Relative luminance 0.245; OKLCH L 63.8% C 0.128 H 300.2°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#9878CD
RGBrgb(152, 120, 205)
HSLhsl(263, 46%, 64%)
HSVhsv(263, 41%, 80%)
CMYKcmyk(25.9%, 41.5%, 0%, 19.6%)
CIE-LABlab(56.60, 30.06, -39.58)
CIE-LCHlch(56.60, 49.70, 307.22°)
OKLaboklab(63.79% 0.0642 -0.1105)
OKLCHoklch(63.79% 0.128 300.2)
XYZxyz(30.6823, 24.5160, 60.8614)
Luminance0.2452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878CD #ADCD78
analogous
#7882CD #9878CD #C278CD
triadic
#9878CD #CD9878 #78CD98
tetradic
#9878CD #CD7882 #ADCD78 #78CDC2
square
#9878CD #CD7882 #ADCD78 #78CDC2
split-complementary
#9878CD #CDC278 #82CD78
monochromatic
#5A3794 #764BBC #9878CD #BAA5DE #DCD1EE

Accessibility & contrast

On white

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

On black

5.90
#9878CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878CD
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878CD#FFFFFF#000000##000000
##9878CD1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187D0
Deuteranopia (green-blind)
#6887CB
Tritanopia (blue-blind)
#8E8699
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9878cd;
/* rgb */ color: rgb(152, 120, 205);
/* oklch */ color: oklch(63.8% 0.128 300.2);
Tailwind
colors: {
  custom: {
    50: '#b89fdc',
    500: '#9878cd',
    950: '#000000',
  },
}
SCSS
$custom: #9878cd;
$custom-light: #b89fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9878cd",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 262.588,
    "s": 45.946,
    "l": 63.725
  },
  "oklch": {
    "l": 0.63793,
    "c": 0.12777,
    "h": 300.2
  },
  "luminance": 0.24516
}

Semantic roles & 50–950 ramp

primary
#9878CD
secondary
#D4DFC1
accent
#B92C84
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9878CD

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

Preview Lab → · Contrast checker → · Palette generator →

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