#9876FA#9876FA

#9876FA is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.0% C 0.189 H 292.3°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9876FA
RGBrgb(152, 118, 250)
HSLhsl(255, 93%, 72%)
HSVhsv(255, 53%, 98%)
CMYKcmyk(39.2%, 52.8%, 0%, 2%)
CIE-LABlab(58.54, 42.73, -61.66)
CIE-LCHlch(58.54, 75.02, 304.72°)
OKLaboklab(66.02% 0.0718 -0.175)
OKLCHoklch(66.02% 0.189 292.3)
XYZxyz(36.6780, 26.5334, 93.6129)
Luminance0.2653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876FA #D8FA76
analogous
#7696FA #9876FA #DA76FA
triadic
#9876FA #FA9876 #76FA98
tetradic
#9876FA #FA7696 #D8FA76 #76FADA
square
#9876FA #FA7696 #D8FA76 #76FADA
split-complementary
#9876FA #FADA76 #96FA76
monochromatic
#4309ED #6C3BF8 #9876FA #C4B1FC #E9E1FE

Accessibility & contrast

On white

3.33
#9876FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.31
#9876FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876FA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876FA#FFFFFF#000000##000000
##9876FA1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8FFF
Deuteranopia (green-blind)
#418AF7
Tritanopia (blue-blind)
#7E91AD
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9876fa;
/* rgb */ color: rgb(152, 118, 250);
/* oklch */ color: oklch(66.0% 0.189 292.3);
Tailwind
colors: {
  custom: {
    50: '#bb9efd',
    500: '#9876fa',
    950: '#000000',
  },
}
SCSS
$custom: #9876fa;
$custom-light: #bb9efd;
$custom-dark: #000000;
JSON
{
  "hex": "#9876fa",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 250
  },
  "hsl": {
    "h": 255.455,
    "s": 92.958,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66023,
    "c": 0.18914,
    "h": 292.3
  },
  "luminance": 0.26534
}

Semantic roles & 50–950 ramp

primary
#9876FA
secondary
#EEF6D5
accent
#E600AA
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9876FA

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

Preview Lab → · Contrast checker → · Palette generator →

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