#9876CD#9876CD

#9876CD is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.4% C 0.131 H 300.8°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9876CD
RGBrgb(152, 118, 205)
HSLhsl(263, 47%, 63%)
HSVhsv(263, 42%, 80%)
CMYKcmyk(25.9%, 42.4%, 0%, 19.6%)
CIE-LABlab(56.13, 31.21, -40.32)
CIE-LCHlch(56.13, 50.99, 307.74°)
OKLaboklab(63.44% 0.067 -0.1126)
OKLCHoklch(63.44% 0.131 300.8)
XYZxyz(30.4443, 24.0399, 60.7820)
Luminance0.2404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876CD #ABCD76
analogous
#767FCD #9876CD #C376CD
triadic
#9876CD #CD9876 #76CD98
tetradic
#9876CD #CD767F #ABCD76 #76CDC3
square
#9876CD #CD767F #ABCD76 #76CDC3
split-complementary
#9876CD #CDC376 #7FCD76
monochromatic
#5A3693 #7649BD #9876CD #BAA3DD #DBD0EE

Accessibility & contrast

On white

3.62
#9876CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#9876CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876CD
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876CD#FFFFFF#000000##000000
##9876CD1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86D0
Deuteranopia (green-blind)
#6686CB
Tritanopia (blue-blind)
#8E8598
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9876cd;
/* rgb */ color: rgb(152, 118, 205);
/* oklch */ color: oklch(63.4% 0.131 300.8);
Tailwind
colors: {
  custom: {
    50: '#b89edc',
    500: '#9876cd',
    950: '#000000',
  },
}
SCSS
$custom: #9876cd;
$custom-light: #b89edc;
$custom-dark: #000000;
JSON
{
  "hex": "#9876cd",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 205
  },
  "hsl": {
    "h": 263.448,
    "s": 46.524,
    "l": 63.333
  },
  "oklch": {
    "l": 0.63436,
    "c": 0.13106,
    "h": 300.8
  },
  "luminance": 0.2404
}

Semantic roles & 50–950 ramp

primary
#9876CD
secondary
#D3DFC0
accent
#BA2C82
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9876CD

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

Preview Lab → · Contrast checker → · Palette generator →

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