#9879EA#9879EA

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

Color values

HEX#9879EA
RGBrgb(152, 121, 234)
HSLhsl(256, 73%, 70%)
HSVhsv(256, 48%, 92%)
CMYKcmyk(35%, 48.3%, 0%, 8.2%)
CIE-LABlab(58.31, 36.82, -53.15)
CIE-LCHlch(58.31, 64.66, 304.71°)
OKLaboklab(65.56% 0.0669 -0.15)
OKLCHoklch(65.56% 0.164 294)
XYZxyz(34.6337, 26.2900, 81.0757)
Luminance0.2629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879EA #CBEA79
analogous
#7993EA #9879EA #D079EA
triadic
#9879EA #EA9879 #79EA98
tetradic
#9879EA #EA7993 #CBEA79 #79EAD0
square
#9879EA #EA7993 #CBEA79 #79EAD0
split-complementary
#9879EA #EAD079 #93EA79
monochromatic
#4E20C9 #6F44E2 #9879EA #C1AEF2 #E9E3FB

Accessibility & contrast

On white

3.36
#9879EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#9879EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879EA
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879EA#FFFFFF#000000##000000
##9879EA1.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#568AE7
Tritanopia (blue-blind)
#848FA6
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9879ea;
/* rgb */ color: rgb(152, 121, 234);
/* oklch */ color: oklch(65.6% 0.164 294.0);
Tailwind
colors: {
  custom: {
    50: '#baa0f1',
    500: '#9879ea',
    950: '#000000',
  },
}
SCSS
$custom: #9879ea;
$custom-light: #baa0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9879ea",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 234
  },
  "hsl": {
    "h": 256.46,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.65561,
    "c": 0.16429,
    "h": 294
  },
  "luminance": 0.26291
}

Semantic roles & 50–950 ramp

primary
#9879EA
secondary
#E7F0CF
accent
#D5119F
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #9879EA

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

Preview Lab → · Contrast checker → · Palette generator →

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