#9876CA#9876CA

#9876CA is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.3% C 0.127 H 301.5°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#9876CA
RGBrgb(152, 118, 202)
HSLhsl(264, 44%, 63%)
HSVhsv(264, 42%, 79%)
CMYKcmyk(24.8%, 41.6%, 0%, 20.8%)
CIE-LABlab(55.98, 30.48, -38.84)
CIE-LCHlch(55.98, 49.37, 308.12°)
OKLaboklab(63.28% 0.0665 -0.1083)
OKLCHoklch(63.28% 0.127 301.5)
XYZxyz(30.0856, 23.8965, 58.8931)
Luminance0.2390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876CA #A8CA76
analogous
#767ECA #9876CA #C276CA
triadic
#9876CA #CA9876 #76CA98
tetradic
#9876CA #CA767E #A8CA76 #76CAC2
square
#9876CA #CA767E #A8CA76 #76CAC2
split-complementary
#9876CA #CAC276 #7ECA76
monochromatic
#5A378E #774AB9 #9876CA #B9A2DB #DACEEC

Accessibility & contrast

On white

3.63
#9876CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#9876CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876CA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876CA#FFFFFF#000000##000000
##9876CA1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6086CD
Deuteranopia (green-blind)
#6786C8
Tritanopia (blue-blind)
#8F8496
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9876ca;
/* rgb */ color: rgb(152, 118, 202);
/* oklch */ color: oklch(63.3% 0.127 301.5);
Tailwind
colors: {
  custom: {
    50: '#b89eda',
    500: '#9876ca',
    950: '#000000',
  },
}
SCSS
$custom: #9876ca;
$custom-light: #b89eda;
$custom-dark: #000000;
JSON
{
  "hex": "#9876ca",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 202
  },
  "hsl": {
    "h": 264.286,
    "s": 44.211,
    "l": 62.745
  },
  "oklch": {
    "l": 0.63281,
    "c": 0.12712,
    "h": 301.5
  },
  "luminance": 0.23897
}

Semantic roles & 50–950 ramp

primary
#9876CA
secondary
#D1DDBF
accent
#B72E80
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9876CA

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

Preview Lab → · Contrast checker → · Palette generator →

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