#9879CD#9879CD

#9879CD is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.0% C 0.126 H 299.9°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9879CD
RGBrgb(152, 121, 205)
HSLhsl(262, 46%, 64%)
HSVhsv(262, 41%, 80%)
CMYKcmyk(25.9%, 41%, 0%, 19.6%)
CIE-LABlab(56.84, 29.48, -39.20)
CIE-LCHlch(56.84, 49.05, 306.95°)
OKLaboklab(63.97% 0.0628 -0.1094)
OKLCHoklch(63.97% 0.126 299.9)
XYZxyz(30.8032, 24.7578, 60.9017)
Luminance0.2476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879CD #AECD79
analogous
#7984CD #9879CD #C279CD
triadic
#9879CD #CD9879 #79CD98
tetradic
#9879CD #CD7984 #AECD79 #79CDC2
square
#9879CD #CD7984 #AECD79 #79CDC2
split-complementary
#9879CD #CDC279 #84CD79
monochromatic
#5A3794 #764CBC #9879CD #BAA6DE #DDD2EE

Accessibility & contrast

On white

3.53
#9879CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#9879CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879CD
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879CD#FFFFFF#000000##000000
##9879CD1.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6388D0
Deuteranopia (green-blind)
#6988CB
Tritanopia (blue-blind)
#8E8799
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9879cd;
/* rgb */ color: rgb(152, 121, 205);
/* oklch */ color: oklch(64.0% 0.126 299.9);
Tailwind
colors: {
  custom: {
    50: '#b8a0dc',
    500: '#9879cd',
    950: '#000000',
  },
}
SCSS
$custom: #9879cd;
$custom-light: #b8a0dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9879cd",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 205
  },
  "hsl": {
    "h": 262.143,
    "s": 45.652,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63973,
    "c": 0.12613,
    "h": 299.9
  },
  "luminance": 0.24758
}

Semantic roles & 50–950 ramp

primary
#9879CD
secondary
#D5E0C2
accent
#B92D85
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9879CD

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

Preview Lab → · Contrast checker → · Palette generator →

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