#9879ED#9879ED

#9879ED is a light, vivid violet. Relative luminance 0.265; OKLCH L 65.7% C 0.168 H 293.6°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#9879ED
RGBrgb(152, 121, 237)
HSLhsl(256, 76%, 70%)
HSVhsv(256, 49%, 93%)
CMYKcmyk(35.9%, 48.9%, 0%, 7.1%)
CIE-LABlab(58.47, 37.60, -54.56)
CIE-LCHlch(58.47, 66.26, 304.57°)
OKLaboklab(65.74% 0.0672 -0.1542)
OKLCHoklch(65.74% 0.168 293.6)
XYZxyz(35.0683, 26.4638, 83.3647)
Luminance0.2646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879ED #CEED79
analogous
#7994ED #9879ED #D279ED
triadic
#9879ED #ED9879 #79ED98
tetradic
#9879ED #ED7994 #CEED79 #79EDD2
square
#9879ED #ED7994 #CEED79 #79EDD2
split-complementary
#9879ED #EDD279 #94ED79
monochromatic
#4C1CD0 #6F43E6 #9879ED #C1AFF4 #EAE4FB

Accessibility & contrast

On white

3.34
#9879ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#9879ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879ED
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879ED#FFFFFF#000000##000000
##9879ED1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8EF1
Deuteranopia (green-blind)
#538BEA
Tritanopia (blue-blind)
#8390A8
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9879ed;
/* rgb */ color: rgb(152, 121, 237);
/* oklch */ color: oklch(65.7% 0.168 293.6);
Tailwind
colors: {
  custom: {
    50: '#baa0f3',
    500: '#9879ed',
    950: '#000000',
  },
}
SCSS
$custom: #9879ed;
$custom-light: #baa0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#9879ed",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 237
  },
  "hsl": {
    "h": 256.034,
    "s": 76.316,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65736,
    "c": 0.16818,
    "h": 293.6
  },
  "luminance": 0.26465
}

Semantic roles & 50–950 ramp

primary
#9879ED
secondary
#E8F1D1
accent
#D90DA2
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120F17
muted
#817E85

Preview Lab

Preview with #9879ED

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

Preview Lab → · Contrast checker → · Palette generator →

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