#876BB2#876BB2

#876BB2 is a mid, moderate violet. Relative luminance 0.189; OKLCH L 58.4% C 0.110 H 301.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#876BB2
RGBrgb(135, 107, 178)
HSLhsl(264, 32%, 56%)
HSVhsv(264, 40%, 70%)
CMYKcmyk(24.2%, 39.9%, 0%, 30.2%)
CIE-LABlab(50.55, 26.01, -33.72)
CIE-LCHlch(50.55, 42.58, 307.65°)
OKLaboklab(58.41% 0.057 -0.0938)
OKLCHoklch(58.41% 0.11 301.3)
XYZxyz(23.2835, 18.8806, 44.5285)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#876BB2 #96B26B
analogous
#6B72B2 #876BB2 #AA6BB2
triadic
#876BB2 #B2876B #6BB287
tetradic
#876BB2 #B26B72 #96B26B #6BB2AA
square
#876BB2 #B26B72 #96B26B #6BB2AA
split-complementary
#876BB2 #B2AA6B #72B26B
monochromatic
#4C386B #684D93 #876BB2 #A893C7 #C8BCDC

Accessibility & contrast

On white

4.40
#876BB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#876BB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #876BB2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##876BB2#FFFFFF#000000##000000
##876BB21.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5978B5
Deuteranopia (green-blind)
#5F78B0
Tritanopia (blue-blind)
#7F7786
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #876bb2;
/* rgb */ color: rgb(135, 107, 178);
/* oklch */ color: oklch(58.4% 0.110 301.3);
Tailwind
colors: {
  custom: {
    50: '#ab95c9',
    500: '#876bb2',
    950: '#000000',
  },
}
SCSS
$custom: #876bb2;
$custom-light: #ab95c9;
$custom-dark: #000000;
JSON
{
  "hex": "#876bb2",
  "rgb": {
    "r": 135,
    "g": 107,
    "b": 178
  },
  "hsl": {
    "h": 263.662,
    "s": 31.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58408,
    "c": 0.10978,
    "h": 301.3
  },
  "luminance": 0.18881
}

Semantic roles & 50–950 ramp

primary
#876BB2
secondary
#C0CBAE
accent
#C8609F
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100D13
muted
#7F7E82

Preview Lab

Preview with #876BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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