#9876F8#9876F8

#9876F8 is a light, vivid violet. Relative luminance 0.264; OKLCH L 65.9% C 0.187 H 292.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9876F8
RGBrgb(152, 118, 248)
HSLhsl(256, 90%, 72%)
HSVhsv(256, 52%, 97%)
CMYKcmyk(38.7%, 52.4%, 0%, 2.7%)
CIE-LABlab(58.42, 42.20, -60.74)
CIE-LCHlch(58.42, 73.96, 304.79°)
OKLaboklab(65.9% 0.0717 -0.1723)
OKLCHoklch(65.9% 0.187 292.6)
XYZxyz(36.3661, 26.4087, 91.9701)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876F8 #D6F876
analogous
#7695F8 #9876F8 #D976F8
triadic
#9876F8 #F89876 #76F898
tetradic
#9876F8 #F87695 #D6F876 #76F8D9
square
#9876F8 #F87695 #D6F876 #76F8D9
split-complementary
#9876F8 #F8D976 #95F876
monochromatic
#450CE8 #6C3CF5 #9876F8 #C4B0FB #E9E2FE

Accessibility & contrast

On white

3.34
#9876F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#9876F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876F8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876F8#FFFFFF#000000##000000
##9876F81.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8EFC
Deuteranopia (green-blind)
#448AF5
Tritanopia (blue-blind)
#7F91AC
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9876f8;
/* rgb */ color: rgb(152, 118, 248);
/* oklch */ color: oklch(65.9% 0.187 292.6);
Tailwind
colors: {
  custom: {
    50: '#bb9efb',
    500: '#9876f8',
    950: '#000000',
  },
}
SCSS
$custom: #9876f8;
$custom-light: #bb9efb;
$custom-dark: #000000;
JSON
{
  "hex": "#9876f8",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 248
  },
  "hsl": {
    "h": 255.692,
    "s": 90.278,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65898,
    "c": 0.18662,
    "h": 292.6
  },
  "luminance": 0.2641
}

Semantic roles & 50–950 ramp

primary
#9876F8
secondary
#EDF5D4
accent
#E600A9
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9876F8

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

Preview Lab → · Contrast checker → · Palette generator →

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