#9878CF#9878CF

#9878CF is a light, vivid violet. Relative luminance 0.246; OKLCH L 63.9% C 0.130 H 299.7°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#9878CF
RGBrgb(152, 120, 207)
HSLhsl(262, 48%, 64%)
HSVhsv(262, 42%, 81%)
CMYKcmyk(26.6%, 42%, 0%, 18.8%)
CIE-LABlab(56.70, 30.55, -40.56)
CIE-LCHlch(56.70, 50.78, 306.99°)
OKLaboklab(63.9% 0.0646 -0.1133)
OKLCHoklch(63.9% 0.13 299.7)
XYZxyz(30.9253, 24.6132, 62.1409)
Luminance0.2461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9878CF #AFCF78
analogous
#7884CF #9878CF #C478CF
triadic
#9878CF #CF9878 #78CF98
tetradic
#9878CF #CF7884 #AFCF78 #78CFC4
square
#9878CF #CF7884 #AFCF78 #78CFC4
split-complementary
#9878CF #CFC478 #84CF78
monochromatic
#593697 #764BBF #9878CF #BAA5DF #DDD2EF

Accessibility & contrast

On white

3.55
#9878CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#9878CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9878CF
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9878CF#FFFFFF#000000##000000
##9878CF1.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6088D2
Deuteranopia (green-blind)
#6787CD
Tritanopia (blue-blind)
#8D879A
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9878cf;
/* rgb */ color: rgb(152, 120, 207);
/* oklch */ color: oklch(63.9% 0.130 299.7);
Tailwind
colors: {
  custom: {
    50: '#b89fde',
    500: '#9878cf',
    950: '#000000',
  },
}
SCSS
$custom: #9878cf;
$custom-light: #b89fde;
$custom-dark: #000000;
JSON
{
  "hex": "#9878cf",
  "rgb": {
    "r": 152,
    "g": 120,
    "b": 207
  },
  "hsl": {
    "h": 262.069,
    "s": 47.541,
    "l": 64.118
  },
  "oklch": {
    "l": 0.63897,
    "c": 0.13042,
    "h": 299.7
  },
  "luminance": 0.24613
}

Semantic roles & 50–950 ramp

primary
#9878CF
secondary
#D5E1C2
accent
#BB2B86
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9878CF

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

Preview Lab → · Contrast checker → · Palette generator →

#9878CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva