#9878FA#9878FA

#9878FA is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.4% C 0.186 H 291.9°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9878FA
RGBrgb(152, 120, 250)
HSLhsl(255, 93%, 73%)
HSVhsv(255, 52%, 98%)
CMYKcmyk(39.2%, 52%, 0%, 2%)
CIE-LABlab(58.98, 41.60, -60.95)
CIE-LCHlch(58.98, 73.79, 304.32°)
OKLaboklab(66.35% 0.0694 -0.1729)
OKLCHoklch(66.35% 0.186 291.9)
XYZxyz(36.9160, 27.0095, 93.6923)
Luminance0.2701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878FA #DAFA78
analogous
#7899FA #9878FA #D978FA
triadic
#9878FA #FA9878 #78FA98
tetradic
#9878FA #FA7899 #DAFA78 #78FAD9
square
#9878FA #FA7899 #DAFA78 #78FAD9
split-complementary
#9878FA #FAD978 #99FA78
monochromatic
#4109EF #6B3DF8 #9878FA #C5B3FC #E8E1FE

Accessibility & contrast

On white

3.28
#9878FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#9878FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878FA
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878FA#FFFFFF#000000##000000
##9878FA1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F90FE
Deuteranopia (green-blind)
#458BF7
Tritanopia (blue-blind)
#7E93AE
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9878fa;
/* rgb */ color: rgb(152, 120, 250);
/* oklch */ color: oklch(66.4% 0.186 291.9);
Tailwind
colors: {
  custom: {
    50: '#bba0fd',
    500: '#9878fa',
    950: '#000000',
  },
}
SCSS
$custom: #9878fa;
$custom-light: #bba0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#9878fa",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 250
  },
  "hsl": {
    "h": 254.769,
    "s": 92.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.66352,
    "c": 0.1863,
    "h": 291.9
  },
  "luminance": 0.2701
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9878FA

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

Preview Lab → · Contrast checker → · Palette generator →

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