#9876EE#9876EE

#9876EE is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.3% C 0.174 H 294.1°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9876EE
RGBrgb(152, 118, 238)
HSLhsl(257, 78%, 70%)
HSVhsv(257, 50%, 93%)
CMYKcmyk(36.1%, 50.4%, 0%, 6.7%)
CIE-LABlab(57.85, 39.57, -56.11)
CIE-LCHlch(57.85, 68.66, 305.19°)
OKLaboklab(65.29% 0.0711 -0.1587)
OKLCHoklch(65.29% 0.174 294.1)
XYZxyz(34.8559, 25.8046, 84.0167)
Luminance0.2581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876EE #CCEE76
analogous
#7690EE #9876EE #D476EE
triadic
#9876EE #EE9876 #76EE98
tetradic
#9876EE #EE7690 #CCEE76 #76EED4
square
#9876EE #EE7690 #CCEE76 #76EED4
split-complementary
#9876EE #EED476 #90EE76
monochromatic
#4D1AD0 #6F40E7 #9876EE #C1ACF5 #EAE3FC

Accessibility & contrast

On white

3.41
#9876EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#9876EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876EE
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876EE#FFFFFF#000000##000000
##9876EE1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#478CF2
Deuteranopia (green-blind)
#4E89EB
Tritanopia (blue-blind)
#838EA7
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9876ee;
/* rgb */ color: rgb(152, 118, 238);
/* oklch */ color: oklch(65.3% 0.174 294.1);
Tailwind
colors: {
  custom: {
    50: '#ba9ef4',
    500: '#9876ee',
    950: '#000000',
  },
}
SCSS
$custom: #9876ee;
$custom-light: #ba9ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#9876ee",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 238
  },
  "hsl": {
    "h": 257,
    "s": 77.922,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65288,
    "c": 0.1739,
    "h": 294.1
  },
  "luminance": 0.25805
}

Semantic roles & 50–950 ramp

primary
#9876EE
secondary
#E7F1CF
accent
#DA0BA0
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9876EE

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

Preview Lab → · Contrast checker → · Palette generator →

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