#9877C7#9877C7

#9877C7 is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.3% C 0.122 H 302.1°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9877C7
RGBrgb(152, 119, 199)
HSLhsl(265, 42%, 62%)
HSVhsv(265, 40%, 78%)
CMYKcmyk(23.6%, 40.2%, 0%, 22%)
CIE-LABlab(56.08, 29.18, -36.99)
CIE-LCHlch(56.08, 47.11, 308.27°)
OKLaboklab(63.31% 0.0645 -0.103)
OKLCHoklch(63.31% 0.122 302.1)
XYZxyz(29.8523, 23.9926, 57.0801)
Luminance0.2399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9877C7 #A6C777
analogous
#777EC7 #9877C7 #C077C7
triadic
#9877C7 #C79877 #77C798
tetradic
#9877C7 #C7777E #A6C777 #77C7C0
square
#9877C7 #C7777E #A6C777 #77C7C0
split-complementary
#9877C7 #C7C077 #7EC777
monochromatic
#5B398B #774CB5 #9877C7 #B9A2D9 #DACEEB

Accessibility & contrast

On white

3.62
#9877C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#9877C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9877C7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9877C7#FFFFFF#000000##000000
##9877C71.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6386CA
Deuteranopia (green-blind)
#6A86C5
Tritanopia (blue-blind)
#908495
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9877c7;
/* rgb */ color: rgb(152, 119, 199);
/* oklch */ color: oklch(63.3% 0.122 302.1);
Tailwind
colors: {
  custom: {
    50: '#b89ed8',
    500: '#9877c7',
    950: '#000000',
  },
}
SCSS
$custom: #9877c7;
$custom-light: #b89ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#9877c7",
  "rgb": {
    "r": 152,
    "g": 119,
    "b": 199
  },
  "hsl": {
    "h": 264.75,
    "s": 41.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63307,
    "c": 0.12151,
    "h": 302.1
  },
  "luminance": 0.23993
}

Semantic roles & 50–950 ramp

primary
#9877C7
secondary
#CFDCBE
accent
#B5317E
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9877C7

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

Preview Lab → · Contrast checker → · Palette generator →

#9877C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva