#871877#871877

#871877 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.175 H 335.1°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#871877
RGBrgb(135, 24, 119)
HSLhsl(309, 70%, 31%)
HSVhsv(309, 82%, 53%)
CMYKcmyk(0%, 82.2%, 11.9%, 47.1%)
CIE-LABlab(32.12, 54.43, -27.02)
CIE-LCHlch(32.12, 60.77, 333.59°)
OKLaboklab(43.82% 0.1591 -0.074)
OKLCHoklch(43.82% 0.175 335.1)
XYZxyz(13.6483, 7.1373, 18.1080)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871877 #188728
analogous
#5F1887 #871877 #87183F
triadic
#871877 #778718 #187787
tetradic
#871877 #875F18 #188728 #183F87
square
#871877 #875F18 #188728 #183F87
split-complementary
#871877 #3F8718 #18875F
monochromatic
#1F061B #530F49 #871877 #BB21A5 #DC3DC5

Accessibility & contrast

On white

8.65
#871877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#871877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871877
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871877#FFFFFF#000000##FFFFFF
##8718771.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174179
Deuteranopia (green-blind)
#425174
Tritanopia (blue-blind)
#8E2347
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871877;
/* rgb */ color: rgb(135, 24, 119);
/* oklch */ color: oklch(43.8% 0.175 335.1);
Tailwind
colors: {
  custom: {
    50: '#ae649e',
    500: '#871877',
    950: '#000000',
  },
}
SCSS
$custom: #871877;
$custom-light: #ae649e;
$custom-dark: #000000;
JSON
{
  "hex": "#871877",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 308.649,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43818,
    "c": 0.17541,
    "h": 335.1
  },
  "luminance": 0.07136
}

Semantic roles & 50–950 ramp

primary
#871877
secondary
#40BB52
accent
#ED553B
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871877

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

Preview Lab → · Contrast checker → · Palette generator →

#871877 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva