#9879F7#9879F7

#9879F7 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.3% C 0.181 H 292.1°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9879F7
RGBrgb(152, 121, 247)
HSLhsl(255, 89%, 72%)
HSVhsv(255, 51%, 97%)
CMYKcmyk(38.5%, 51%, 0%, 3.1%)
CIE-LABlab(59.03, 40.24, -59.21)
CIE-LCHlch(59.03, 71.59, 304.20°)
OKLaboklab(66.33% 0.068 -0.1678)
OKLCHoklch(66.33% 0.181 292.1)
XYZxyz(36.5703, 27.0646, 91.2748)
Luminance0.2707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879F7 #D8F779
analogous
#7999F7 #9879F7 #D779F7
triadic
#9879F7 #F79879 #79F798
tetradic
#9879F7 #F77999 #D8F779 #79F7D7
square
#9879F7 #F77999 #D8F779 #79F7D7
split-complementary
#9879F7 #F7D779 #99F779
monochromatic
#430EE8 #6C3FF4 #9879F7 #C4B3FA #E9E2FD

Accessibility & contrast

On white

3.27
#9879F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#9879F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879F7
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879F7#FFFFFF#000000##000000
##9879F71.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4490FB
Deuteranopia (green-blind)
#4A8CF4
Tritanopia (blue-blind)
#7F93AD
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9879f7;
/* rgb */ color: rgb(152, 121, 247);
/* oklch */ color: oklch(66.3% 0.181 292.1);
Tailwind
colors: {
  custom: {
    50: '#bba0fa',
    500: '#9879f7',
    950: '#000000',
  },
}
SCSS
$custom: #9879f7;
$custom-light: #bba0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#9879f7",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 247
  },
  "hsl": {
    "h": 254.762,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.66334,
    "c": 0.18105,
    "h": 292.1
  },
  "luminance": 0.27066
}

Semantic roles & 50–950 ramp

primary
#9879F7
secondary
#EEF5D6
accent
#E500AD
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F17
muted
#817E85

Preview Lab

Preview with #9879F7

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

Preview Lab → · Contrast checker → · Palette generator →

#9879F7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva