#9877EA#9877EA

#9877EA is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.2% C 0.167 H 294.5°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9877EA
RGBrgb(152, 119, 234)
HSLhsl(257, 73%, 69%)
HSVhsv(257, 49%, 92%)
CMYKcmyk(35%, 49.1%, 0%, 8.2%)
CIE-LABlab(57.86, 37.96, -53.88)
CIE-LCHlch(57.86, 65.91, 305.16°)
OKLaboklab(65.22% 0.0695 -0.1522)
OKLCHoklch(65.22% 0.167 294.5)
XYZxyz(34.3932, 25.8089, 80.9955)
Luminance0.2581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9877EA #C9EA77
analogous
#7790EA #9877EA #D177EA
triadic
#9877EA #EA9877 #77EA98
tetradic
#9877EA #EA7790 #C9EA77 #77EAD1
square
#9877EA #EA7790 #C9EA77 #77EAD1
split-complementary
#9877EA #EAD177 #90EA77
monochromatic
#4F1FC8 #7042E2 #9877EA #C0ACF2 #E8E1FA

Accessibility & contrast

On white

3.41
#9877EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#9877EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9877EA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9877EA#FFFFFF#000000##000000
##9877EA1.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8CEE
Deuteranopia (green-blind)
#5389E7
Tritanopia (blue-blind)
#858EA6
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9877ea;
/* rgb */ color: rgb(152, 119, 234);
/* oklch */ color: oklch(65.2% 0.167 294.5);
Tailwind
colors: {
  custom: {
    50: '#ba9ff1',
    500: '#9877ea',
    950: '#000000',
  },
}
SCSS
$custom: #9877ea;
$custom-light: #ba9ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#9877ea",
  "rgb": {
    "r": 152,
    "g": 119,
    "b": 234
  },
  "hsl": {
    "h": 257.217,
    "s": 73.248,
    "l": 69.216
  },
  "oklch": {
    "l": 0.6522,
    "c": 0.16728,
    "h": 294.5
  },
  "luminance": 0.2581
}

Semantic roles & 50–950 ramp

primary
#9877EA
secondary
#E6EFCE
accent
#D5109D
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9877EA

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

Preview Lab → · Contrast checker → · Palette generator →

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