#9877F6#9877F6

#9877F6 is a light, vivid violet. Relative luminance 0.265; OKLCH L 65.9% C 0.183 H 292.7°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9877F6
RGBrgb(152, 119, 246)
HSLhsl(256, 88%, 72%)
HSVhsv(256, 52%, 96%)
CMYKcmyk(38.2%, 51.6%, 0%, 3.5%)
CIE-LABlab(58.53, 41.10, -59.47)
CIE-LCHlch(58.53, 72.29, 304.65°)
OKLaboklab(65.94% 0.0704 -0.1685)
OKLCHoklch(65.94% 0.183 292.7)
XYZxyz(36.1758, 26.5220, 90.3842)
Luminance0.2652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9877F6 #D5F677
analogous
#7796F6 #9877F6 #D877F6
triadic
#9877F6 #F69877 #77F698
tetradic
#9877F6 #F67796 #D5F677 #77F6D8
square
#9877F6 #F67796 #D5F677 #77F6D8
split-complementary
#9877F6 #F6D877 #96F677
monochromatic
#460FE4 #6D3EF2 #9877F6 #C3B0FA #E9E2FD

Accessibility & contrast

On white

3.33
#9877F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9877F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9877F6
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9877F6#FFFFFF#000000##000000
##9877F61.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#418EFA
Deuteranopia (green-blind)
#488AF3
Tritanopia (blue-blind)
#8091AB
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9877f6;
/* rgb */ color: rgb(152, 119, 246);
/* oklch */ color: oklch(65.9% 0.183 292.7);
Tailwind
colors: {
  custom: {
    50: '#bb9ffa',
    500: '#9877f6',
    950: '#000000',
  },
}
SCSS
$custom: #9877f6;
$custom-light: #bb9ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#9877f6",
  "rgb": {
    "r": 152,
    "g": 119,
    "b": 246
  },
  "hsl": {
    "h": 255.591,
    "s": 87.586,
    "l": 71.569
  },
  "oklch": {
    "l": 0.6594,
    "c": 0.18265,
    "h": 292.7
  },
  "luminance": 0.26523
}

Semantic roles & 50–950 ramp

primary
#9877F6
secondary
#ECF5D4
accent
#E401A9
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9877F6

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

Preview Lab → · Contrast checker → · Palette generator →

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