#9876E8#9876E8

#9876E8 is a light, vivid violet. Relative luminance 0.255; OKLCH L 64.9% C 0.166 H 295.1°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9876E8
RGBrgb(152, 118, 232)
HSLhsl(258, 71%, 69%)
HSVhsv(258, 49%, 91%)
CMYKcmyk(34.5%, 49.1%, 0%, 9%)
CIE-LABlab(57.52, 38.01, -53.30)
CIE-LCHlch(57.52, 65.46, 305.49°)
OKLaboklab(64.93% 0.0706 -0.1505)
OKLCHoklch(64.93% 0.166 295.1)
XYZxyz(33.9891, 25.4579, 79.4514)
Luminance0.2546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876E8 #C6E876
analogous
#768DE8 #9876E8 #D176E8
triadic
#9876E8 #E89876 #76E898
tetradic
#9876E8 #E8768D #C6E876 #76E8D1
square
#9876E8 #E8768D #C6E876 #76E8D1
split-complementary
#9876E8 #E8D176 #8DE876
monochromatic
#5121C3 #7142DF #9876E8 #BFAAF1 #E7DFFA

Accessibility & contrast

On white

3.45
#9876E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9876E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876E8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876E8#FFFFFF#000000##000000
##9876E81.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8BEC
Deuteranopia (green-blind)
#5388E5
Tritanopia (blue-blind)
#858CA4
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9876e8;
/* rgb */ color: rgb(152, 118, 232);
/* oklch */ color: oklch(64.9% 0.166 295.1);
Tailwind
colors: {
  custom: {
    50: '#ba9ef0',
    500: '#9876e8',
    950: '#000000',
  },
}
SCSS
$custom: #9876e8;
$custom-light: #ba9ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#9876e8",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 232
  },
  "hsl": {
    "h": 257.895,
    "s": 71.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.64933,
    "c": 0.1662,
    "h": 295.1
  },
  "luminance": 0.25458
}

Semantic roles & 50–950 ramp

primary
#9876E8
secondary
#E4EECC
accent
#D3129A
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9876E8

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

Preview Lab → · Contrast checker → · Palette generator →

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