#877FA8#877FA8

#877FA8 is a mid, moderate violet. Relative luminance 0.232; OKLCH L 61.9% C 0.062 H 293.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#877FA8
RGBrgb(135, 127, 168)
HSLhsl(252, 19%, 58%)
HSVhsv(252, 24%, 66%)
CMYKcmyk(19.6%, 24.4%, 0%, 34.1%)
CIE-LABlab(55.23, 11.81, -20.67)
CIE-LCHlch(55.23, 23.81, 299.73°)
OKLaboklab(61.86% 0.0246 -0.0567)
OKLCHoklch(61.86% 0.062 293.5)
XYZxyz(24.6473, 23.1566, 40.2093)
Luminance0.2316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#877FA8 #A0A87F
analogous
#7F8BA8 #877FA8 #9B7FA8
triadic
#877FA8 #A8877F #7FA887
tetradic
#877FA8 #A87F8B #A0A87F #7FA89B
square
#877FA8 #A87F8B #A0A87F #7FA89B
split-complementary
#877FA8 #A89B7F #8BA87F
monochromatic
#4C4667 #675F8B #877FA8 #A9A3C1 #CBC8DA

Accessibility & contrast

On white

3.73
#877FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#877FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #877FA8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##877FA8#FFFFFF#000000##000000
##877FA81.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7685AA
Deuteranopia (green-blind)
#7684A7
Tritanopia (blue-blind)
#81858D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #877fa8;
/* rgb */ color: rgb(135, 127, 168);
/* oklch */ color: oklch(61.9% 0.062 293.5);
Tailwind
colors: {
  custom: {
    50: '#aaa4c2',
    500: '#877fa8',
    950: '#000000',
  },
}
SCSS
$custom: #877fa8;
$custom-light: #aaa4c2;
$custom-dark: #000000;
JSON
{
  "hex": "#877fa8",
  "rgb": {
    "r": 135,
    "g": 127,
    "b": 168
  },
  "hsl": {
    "h": 251.707,
    "s": 19.07,
    "l": 57.843
  },
  "oklch": {
    "l": 0.61857,
    "c": 0.06177,
    "h": 293.5
  },
  "luminance": 0.23157
}

Semantic roles & 50–950 ramp

primary
#877FA8
secondary
#C6CAB9
accent
#BC6CAC
background
#FAFAFB
surface
#F4F4F7
border
#CECED0
text
#100F12
muted
#7F7F81

Preview Lab

Preview with #877FA8

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

Preview Lab → · Contrast checker → · Palette generator →

#877FA8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva