#876CD9#876CD9

#876CD9 is a mid, vivid violet. Relative luminance 0.209; OKLCH L 60.8% C 0.161 H 292.4°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#876CD9
RGBrgb(135, 108, 217)
HSLhsl(255, 59%, 64%)
HSVhsv(255, 50%, 85%)
CMYKcmyk(37.8%, 50.2%, 0%, 14.9%)
CIE-LABlab(52.82, 35.55, -52.46)
CIE-LCHlch(52.82, 63.36, 304.12°)
OKLaboklab(60.78% 0.0611 -0.1485)
OKLCHoklch(60.78% 0.161 292.4)
XYZxyz(27.8753, 20.8851, 68.1947)
Luminance0.2089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#876CD9 #BED96C
analogous
#6C87D9 #876CD9 #BD6CD9
triadic
#876CD9 #D9876C #6CD987
tetradic
#876CD9 #D96C87 #BED96C #6CD9BD
square
#876CD9 #D96C87 #BED96C #6CD9BD
split-complementary
#876CD9 #D9BD6C #87D96C
monochromatic
#472AA1 #5F3BCC #876CD9 #AF9DE6 #D6CDF2

Accessibility & contrast

On white

4.06
#876CD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#876CD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #876CD9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##876CD9#FFFFFF#000000##000000
##876CD91.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4180DD
Deuteranopia (green-blind)
#457CD6
Tritanopia (blue-blind)
#728298
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #876cd9;
/* rgb */ color: rgb(135, 108, 217);
/* oklch */ color: oklch(60.8% 0.161 292.4);
Tailwind
colors: {
  custom: {
    50: '#ae96e5',
    500: '#876cd9',
    950: '#000000',
  },
}
SCSS
$custom: #876cd9;
$custom-light: #ae96e5;
$custom-dark: #000000;
JSON
{
  "hex": "#876cd9",
  "rgb": {
    "r": 135,
    "g": 108,
    "b": 217
  },
  "hsl": {
    "h": 254.862,
    "s": 58.919,
    "l": 63.725
  },
  "oklch": {
    "l": 0.60782,
    "c": 0.16055,
    "h": 292.4
  },
  "luminance": 0.20886
}

Semantic roles & 50–950 ramp

primary
#876CD9
secondary
#DAE4BD
accent
#C71F9D
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#110D16
muted
#807E84

Preview Lab

Preview with #876CD9

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

Preview Lab → · Contrast checker → · Palette generator →

#876CD9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva