#9878FC#9878FC

#9878FC is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.5% C 0.189 H 291.6°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9878FC
RGBrgb(152, 120, 252)
HSLhsl(255, 96%, 73%)
HSVhsv(255, 52%, 99%)
CMYKcmyk(39.7%, 52.4%, 0%, 1.2%)
CIE-LABlab(59.10, 42.14, -61.86)
CIE-LCHlch(59.10, 74.85, 304.26°)
OKLaboklab(66.48% 0.0695 -0.1756)
OKLCHoklch(66.48% 0.189 291.6)
XYZxyz(37.2313, 27.1356, 95.3526)
Luminance0.2714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878FC #DCFC78
analogous
#789AFC #9878FC #DA78FC
triadic
#9878FC #FC9878 #78FC98
tetradic
#9878FC #FC789A #DCFC78 #78FCDA
square
#9878FC #FC789A #DCFC78 #78FCDA
split-complementary
#9878FC #FCDA78 #9AFC78
monochromatic
#3F05F4 #6A3CFB #9878FC #C6B4FD #E8E1FE

Accessibility & contrast

On white

3.27
#9878FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#9878FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878FC
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878FC#FFFFFF#000000##000000
##9878FC1.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D90FF
Deuteranopia (green-blind)
#428CF9
Tritanopia (blue-blind)
#7D93AF
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9878fc;
/* rgb */ color: rgb(152, 120, 252);
/* oklch */ color: oklch(66.5% 0.189 291.6);
Tailwind
colors: {
  custom: {
    50: '#bba0fe',
    500: '#9878fc',
    950: '#000000',
  },
}
SCSS
$custom: #9878fc;
$custom-light: #bba0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#9878fc",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 254.545,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.66476,
    "c": 0.18884,
    "h": 291.6
  },
  "luminance": 0.27137
}

Semantic roles & 50–950 ramp

primary
#9878FC
secondary
#EEF7D4
accent
#E600AE
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9878FC

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

Preview Lab → · Contrast checker → · Palette generator →

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