#9876EC#9876EC

#9876EC is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.2% C 0.171 H 294.4°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9876EC
RGBrgb(152, 118, 236)
HSLhsl(257, 76%, 69%)
HSVhsv(257, 50%, 93%)
CMYKcmyk(35.6%, 50%, 0%, 7.5%)
CIE-LABlab(57.74, 39.04, -55.18)
CIE-LCHlch(57.74, 67.60, 305.28°)
OKLaboklab(65.17% 0.0709 -0.156)
OKLCHoklch(65.17% 0.171 294.4)
XYZxyz(34.5637, 25.6877, 82.4778)
Luminance0.2569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876EC #CAEC76
analogous
#768FEC #9876EC #D376EC
triadic
#9876EC #EC9876 #76EC98
tetradic
#9876EC #EC768F #CAEC76 #76ECD3
square
#9876EC #EC768F #CAEC76 #76ECD3
split-complementary
#9876EC #ECD376 #8FEC76
monochromatic
#4F1CCB #7040E5 #9876EC #C0ACF3 #E9E1FB

Accessibility & contrast

On white

3.42
#9876EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9876EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876EC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876EC#FFFFFF#000000##000000
##9876EC1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#498CF0
Deuteranopia (green-blind)
#5089E9
Tritanopia (blue-blind)
#848DA6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9876ec;
/* rgb */ color: rgb(152, 118, 236);
/* oklch */ color: oklch(65.2% 0.171 294.4);
Tailwind
colors: {
  custom: {
    50: '#ba9ef3',
    500: '#9876ec',
    950: '#000000',
  },
}
SCSS
$custom: #9876ec;
$custom-light: #ba9ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#9876ec",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 236
  },
  "hsl": {
    "h": 257.288,
    "s": 75.641,
    "l": 69.412
  },
  "oklch": {
    "l": 0.65169,
    "c": 0.17134,
    "h": 294.4
  },
  "luminance": 0.25688
}

Semantic roles & 50–950 ramp

primary
#9876EC
secondary
#E6F0CE
accent
#D80E9E
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9876EC

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

Preview Lab → · Contrast checker → · Palette generator →

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