#9876FE#9876FE

#9876FE is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.3% C 0.194 H 291.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9876FE
RGBrgb(152, 118, 254)
HSLhsl(255, 99%, 73%)
HSVhsv(255, 54%, 100%)
CMYKcmyk(40.2%, 53.5%, 0%, 0.4%)
CIE-LABlab(58.78, 43.79, -63.48)
CIE-LCHlch(58.78, 77.12, 304.60°)
OKLaboklab(66.27% 0.0719 -0.1803)
OKLCHoklch(66.27% 0.194 291.7)
XYZxyz(37.3119, 26.7870, 96.9512)
Luminance0.2679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876FE #DCFE76
analogous
#7698FE #9876FE #DC76FE
triadic
#9876FE #FE9876 #76FE98
tetradic
#9876FE #FE7698 #DCFE76 #76FEDC
square
#9876FE #FE7698 #DCFE76 #76FEDC
split-complementary
#9876FE #FEDC76 #98FE76
monochromatic
#3F02F8 #6A39FE #9876FE #C6B3FE #E8E1FF

Accessibility & contrast

On white

3.30
#9876FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9876FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876FE
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876FE#FFFFFF#000000##000000
##9876FE1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#358FFF
Deuteranopia (green-blind)
#3C8BFB
Tritanopia (blue-blind)
#7C93AF
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9876fe;
/* rgb */ color: rgb(152, 118, 254);
/* oklch */ color: oklch(66.3% 0.194 291.7);
Tailwind
colors: {
  custom: {
    50: '#bc9eff',
    500: '#9876fe',
    950: '#000000',
  },
}
SCSS
$custom: #9876fe;
$custom-light: #bc9eff;
$custom-dark: #000000;
JSON
{
  "hex": "#9876fe",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 254
  },
  "hsl": {
    "h": 255,
    "s": 98.551,
    "l": 72.941
  },
  "oklch": {
    "l": 0.66274,
    "c": 0.19416,
    "h": 291.7
  },
  "luminance": 0.26788
}

Semantic roles & 50–950 ramp

primary
#9876FE
secondary
#EEF7D4
accent
#E600AC
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9876FE

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

Preview Lab → · Contrast checker → · Palette generator →

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