#9876EA#9876EA

#9876EA is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.1% C 0.169 H 294.8°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#9876EA
RGBrgb(152, 118, 234)
HSLhsl(258, 73%, 69%)
HSVhsv(258, 50%, 92%)
CMYKcmyk(35%, 49.6%, 0%, 8.2%)
CIE-LABlab(57.63, 38.52, -54.24)
CIE-LCHlch(57.63, 66.53, 305.38°)
OKLaboklab(65.05% 0.0707 -0.1532)
OKLCHoklch(65.05% 0.169 294.8)
XYZxyz(34.2748, 25.5721, 80.9561)
Luminance0.2557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876EA #C8EA76
analogous
#768EEA #9876EA #D276EA
triadic
#9876EA #EA9876 #76EA98
tetradic
#9876EA #EA768E #C8EA76 #76EAD2
square
#9876EA #EA768E #C8EA76 #76EAD2
split-complementary
#9876EA #EAD276 #8EEA76
monochromatic
#501FC7 #7041E2 #9876EA #C0ABF2 #E8E0FA

Accessibility & contrast

On white

3.43
#9876EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#9876EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876EA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876EA#FFFFFF#000000##000000
##9876EA1.003.436.116.11
#FFFFFF3.431.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8BEE
Deuteranopia (green-blind)
#5289E7
Tritanopia (blue-blind)
#858DA5
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9876ea;
/* rgb */ color: rgb(152, 118, 234);
/* oklch */ color: oklch(65.1% 0.169 294.8);
Tailwind
colors: {
  custom: {
    50: '#ba9ef1',
    500: '#9876ea',
    950: '#000000',
  },
}
SCSS
$custom: #9876ea;
$custom-light: #ba9ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9876ea",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 234
  },
  "hsl": {
    "h": 257.586,
    "s": 73.418,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65051,
    "c": 0.16877,
    "h": 294.8
  },
  "luminance": 0.25573
}

Semantic roles & 50–950 ramp

primary
#9876EA
secondary
#E5EFCD
accent
#D6109C
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9876EA

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

Preview Lab → · Contrast checker → · Palette generator →

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