#9876F6#9876F6

#9876F6 is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.8% C 0.184 H 292.9°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#9876F6
RGBrgb(152, 118, 246)
HSLhsl(256, 88%, 71%)
HSVhsv(256, 52%, 96%)
CMYKcmyk(38.2%, 52%, 0%, 3.5%)
CIE-LABlab(58.31, 41.67, -59.82)
CIE-LCHlch(58.31, 72.90, 304.86°)
OKLaboklab(65.77% 0.0716 -0.1696)
OKLCHoklch(65.77% 0.184 292.9)
XYZxyz(36.0575, 26.2852, 90.3447)
Luminance0.2629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876F6 #D4F676
analogous
#7694F6 #9876F6 #D876F6
triadic
#9876F6 #F69876 #76F698
tetradic
#9876F6 #F67694 #D4F676 #76F6D8
square
#9876F6 #F67694 #D4F676 #76F6D8
split-complementary
#9876F6 #F6D876 #94F676
monochromatic
#470FE3 #6D3DF2 #9876F6 #C3AFFA #E9E2FD

Accessibility & contrast

On white

3.36
#9876F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#9876F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876F6
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876F6#FFFFFF#000000##000000
##9876F61.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8EFA
Deuteranopia (green-blind)
#468AF3
Tritanopia (blue-blind)
#8090AB
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9876f6;
/* rgb */ color: rgb(152, 118, 246);
/* oklch */ color: oklch(65.8% 0.184 292.9);
Tailwind
colors: {
  custom: {
    50: '#bb9efa',
    500: '#9876f6',
    950: '#000000',
  },
}
SCSS
$custom: #9876f6;
$custom-light: #bb9efa;
$custom-dark: #000000;
JSON
{
  "hex": "#9876f6",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 246
  },
  "hsl": {
    "h": 255.938,
    "s": 87.671,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65774,
    "c": 0.18408,
    "h": 292.9
  },
  "luminance": 0.26286
}

Semantic roles & 50–950 ramp

primary
#9876F6
secondary
#ECF5D3
accent
#E401A8
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9876F6

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

Preview Lab → · Contrast checker → · Palette generator →

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