#9879FB#9879FB

#9879FB is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.6% C 0.186 H 291.5°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#9879FB
RGBrgb(152, 121, 251)
HSLhsl(254, 94%, 73%)
HSVhsv(254, 52%, 98%)
CMYKcmyk(39.4%, 51.8%, 0%, 1.6%)
CIE-LABlab(59.26, 41.31, -61.05)
CIE-LCHlch(59.26, 73.71, 304.08°)
OKLaboklab(66.58% 0.0682 -0.1732)
OKLCHoklch(66.58% 0.186 291.5)
XYZxyz(37.1941, 27.3141, 94.5606)
Luminance0.2732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879FB #DCFB79
analogous
#799BFB #9879FB #D979FB
triadic
#9879FB #FB9879 #79FB98
tetradic
#9879FB #FB799B #DCFB79 #79FBD9
square
#9879FB #FB799B #DCFB79 #79FBD9
split-complementary
#9879FB #FBD979 #9BFB79
monochromatic
#3F07F2 #6A3EF9 #9879FB #C6B4FD #E8E1FE

Accessibility & contrast

On white

3.25
#9879FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#9879FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879FB
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879FB#FFFFFF#000000##000000
##9879FB1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4091FF
Deuteranopia (green-blind)
#458CF8
Tritanopia (blue-blind)
#7E94AF
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #9879fb;
/* rgb */ color: rgb(152, 121, 251);
/* oklch */ color: oklch(66.6% 0.186 291.5);
Tailwind
colors: {
  custom: {
    50: '#bba0fd',
    500: '#9879fb',
    950: '#000000',
  },
}
SCSS
$custom: #9879fb;
$custom-light: #bba0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#9879fb",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 251
  },
  "hsl": {
    "h": 254.308,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.66579,
    "c": 0.18616,
    "h": 291.5
  },
  "luminance": 0.27315
}

Semantic roles & 50–950 ramp

primary
#9879FB
secondary
#EEF6D5
accent
#E600AF
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F18
muted
#817E86

Preview Lab

Preview with #9879FB

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

Preview Lab → · Contrast checker → · Palette generator →

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