#9879CB#9879CB

#9879CB is a light, vivid violet. Relative luminance 0.247; OKLCH L 63.9% C 0.123 H 300.4°. Best body text is #000000 at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#9879CB
RGBrgb(152, 121, 203)
HSLhsl(263, 44%, 64%)
HSVhsv(263, 40%, 80%)
CMYKcmyk(25.1%, 40.4%, 0%, 20.4%)
CIE-LABlab(56.74, 29.00, -38.22)
CIE-LCHlch(56.74, 47.97, 307.19°)
OKLaboklab(63.87% 0.0624 -0.1065)
OKLCHoklch(63.87% 0.123 300.4)
XYZxyz(30.5633, 24.6618, 59.6384)
Luminance0.2466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9879CB #ACCB79
analogous
#7983CB #9879CB #C179CB
triadic
#9879CB #CB9879 #79CB98
tetradic
#9879CB #CB7983 #ACCB79 #79CBC1
square
#9879CB #CB7983 #ACCB79 #79CBC1
split-complementary
#9879CB #CBC179 #83CB79
monochromatic
#5A3891 #764DBA #9879CB #BAA5DC #DCD1ED

Accessibility & contrast

On white

3.54
#9879CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.93
#9879CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9879CB
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9879CB#FFFFFF#000000##000000
##9879CB1.003.545.935.93
#FFFFFF3.541.0021.0021.00
#0000005.9321.001.001.00
##0000005.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6488CE
Deuteranopia (green-blind)
#6A88C9
Tritanopia (blue-blind)
#8F8798
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9879cb;
/* rgb */ color: rgb(152, 121, 203);
/* oklch */ color: oklch(63.9% 0.123 300.4);
Tailwind
colors: {
  custom: {
    50: '#b8a0db',
    500: '#9879cb',
    950: '#000000',
  },
}
SCSS
$custom: #9879cb;
$custom-light: #b8a0db;
$custom-dark: #000000;
JSON
{
  "hex": "#9879cb",
  "rgb": {
    "r": 152,
    "g": 121,
    "b": 203
  },
  "hsl": {
    "h": 262.683,
    "s": 44.086,
    "l": 63.529
  },
  "oklch": {
    "l": 0.63871,
    "c": 0.12348,
    "h": 300.4
  },
  "luminance": 0.24662
}

Semantic roles & 50–950 ramp

primary
#9879CB
secondary
#D3DEC1
accent
#B72E83
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9879CB

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

Preview Lab → · Contrast checker → · Palette generator →

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