#9877EF#9877EF

#9877EF is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.5% C 0.174 H 293.7°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9877EF
RGBrgb(152, 119, 239)
HSLhsl(257, 79%, 70%)
HSVhsv(257, 50%, 94%)
CMYKcmyk(36.4%, 50.2%, 0%, 6.3%)
CIE-LABlab(58.13, 39.26, -56.22)
CIE-LCHlch(58.13, 68.57, 304.93°)
OKLaboklab(65.52% 0.0699 -0.159)
OKLCHoklch(65.52% 0.174 293.7)
XYZxyz(35.1216, 26.1003, 84.8320)
Luminance0.2610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9877EF #CEEF77
analogous
#7792EF #9877EF #D477EF
triadic
#9877EF #EF9877 #77EF98
tetradic
#9877EF #EF7792 #CEEF77 #77EFD4
square
#9877EF #EF7792 #CEEF77 #77EFD4
split-complementary
#9877EF #EFD477 #92EF77
monochromatic
#4C19D3 #6F40E9 #9877EF #C1AEF5 #EAE4FC

Accessibility & contrast

On white

3.38
#9877EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#9877EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9877EF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9877EF#FFFFFF#000000##000000
##9877EF1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#488DF3
Deuteranopia (green-blind)
#4F8AEC
Tritanopia (blue-blind)
#838FA8
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9877ef;
/* rgb */ color: rgb(152, 119, 239);
/* oklch */ color: oklch(65.5% 0.174 293.7);
Tailwind
colors: {
  custom: {
    50: '#ba9ff5',
    500: '#9877ef',
    950: '#000000',
  },
}
SCSS
$custom: #9877ef;
$custom-light: #ba9ff5;
$custom-dark: #000000;
JSON
{
  "hex": "#9877ef",
  "rgb": {
    "r": 152,
    "g": 119,
    "b": 239
  },
  "hsl": {
    "h": 256.5,
    "s": 78.947,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65516,
    "c": 0.17371,
    "h": 293.7
  },
  "luminance": 0.26101
}

Semantic roles & 50–950 ramp

primary
#9877EF
secondary
#E8F2D0
accent
#DB0AA2
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9877EF

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

Preview Lab → · Contrast checker → · Palette generator →

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