#9879EF#9879EF

#9879EF is a light, vivid violet. Relative luminance 0.266; OKLCH L 65.9% C 0.171 H 293.2°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9879EF
RGBrgb(152, 121, 239)
HSLhsl(256, 79%, 71%)
HSVhsv(256, 49%, 94%)
CMYKcmyk(36.4%, 49.4%, 0%, 6.3%)
CIE-LABlab(58.58, 38.13, -55.50)
CIE-LCHlch(58.58, 67.33, 304.49°)
OKLaboklab(65.85% 0.0674 -0.1569)
OKLCHoklch(65.85% 0.171 293.2)
XYZxyz(35.3622, 26.5814, 84.9122)
Luminance0.2658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879EF #D0EF79
analogous
#7995EF #9879EF #D379EF
triadic
#9879EF #EF9879 #79EF98
tetradic
#9879EF #EF7995 #D0EF79 #79EFD3
square
#9879EF #EF7995 #D0EF79 #79EFD3
split-complementary
#9879EF #EFD379 #95EF79
monochromatic
#4A19D4 #6E42E8 #9879EF #C2B0F6 #EAE4FC

Accessibility & contrast

On white

3.32
#9879EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9879EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879EF
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879EF#FFFFFF#000000##000000
##9879EF1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8EF3
Deuteranopia (green-blind)
#518BEC
Tritanopia (blue-blind)
#8390A9
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9879ef;
/* rgb */ color: rgb(152, 121, 239);
/* oklch */ color: oklch(65.9% 0.171 293.2);
Tailwind
colors: {
  custom: {
    50: '#baa0f5',
    500: '#9879ef',
    950: '#000000',
  },
}
SCSS
$custom: #9879ef;
$custom-light: #baa0f5;
$custom-dark: #000000;
JSON
{
  "hex": "#9879ef",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 239
  },
  "hsl": {
    "h": 255.763,
    "s": 78.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65854,
    "c": 0.17077,
    "h": 293.2
  },
  "luminance": 0.26582
}

Semantic roles & 50–950 ramp

primary
#9879EF
secondary
#EAF2D2
accent
#DB0BA4
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120F17
muted
#817E85

Preview Lab

Preview with #9879EF

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

Preview Lab → · Contrast checker → · Palette generator →

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