#9879EB#9879EB

#9879EB is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.6% C 0.166 H 293.9°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9879EB
RGBrgb(152, 121, 235)
HSLhsl(256, 74%, 70%)
HSVhsv(256, 49%, 92%)
CMYKcmyk(35.3%, 48.5%, 0%, 7.8%)
CIE-LABlab(58.37, 37.08, -53.62)
CIE-LCHlch(58.37, 65.20, 304.66°)
OKLaboklab(65.62% 0.067 -0.1514)
OKLCHoklch(65.62% 0.166 293.9)
XYZxyz(34.7778, 26.3476, 81.8344)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879EB #CCEB79
analogous
#7993EB #9879EB #D179EB
triadic
#9879EB #EB9879 #79EB98
tetradic
#9879EB #EB7993 #CCEB79 #79EBD1
square
#9879EB #EB7993 #CCEB79 #79EBD1
split-complementary
#9879EB #EBD179 #93EB79
monochromatic
#4D1ECB #6F44E3 #9879EB #C1AEF3 #EAE4FB

Accessibility & contrast

On white

3.35
#9879EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#9879EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879EB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879EB#FFFFFF#000000##000000
##9879EB1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8EEF
Deuteranopia (green-blind)
#558AE8
Tritanopia (blue-blind)
#848FA7
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9879eb;
/* rgb */ color: rgb(152, 121, 235);
/* oklch */ color: oklch(65.6% 0.166 293.9);
Tailwind
colors: {
  custom: {
    50: '#baa0f2',
    500: '#9879eb',
    950: '#000000',
  },
}
SCSS
$custom: #9879eb;
$custom-light: #baa0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9879eb",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 235
  },
  "hsl": {
    "h": 256.316,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.65619,
    "c": 0.16559,
    "h": 293.9
  },
  "luminance": 0.26348
}

Semantic roles & 50–950 ramp

primary
#9879EB
secondary
#E7F0D0
accent
#D60FA0
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #9879EB

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

Preview Lab → · Contrast checker → · Palette generator →

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