#871878#871878

#871878 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.176 H 334.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#871878
RGBrgb(135, 24, 120)
HSLhsl(308, 70%, 31%)
HSVhsv(308, 82%, 53%)
CMYKcmyk(0%, 82.2%, 11.1%, 47.1%)
CIE-LABlab(32.17, 54.58, -27.57)
CIE-LCHlch(32.17, 61.14, 333.20°)
OKLaboklab(43.87% 0.1591 -0.0755)
OKLCHoklch(43.87% 0.176 334.6)
XYZxyz(13.7086, 7.1615, 18.4260)
Luminance0.0716 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871878 #188727
analogous
#5E1887 #871878 #871840
triadic
#871878 #788718 #187887
tetradic
#871878 #875E18 #188727 #184087
square
#871878 #875E18 #188727 #184087
split-complementary
#871878 #408718 #18875E
monochromatic
#1F061C #530F4A #871878 #BB21A6 #DC3DC7

Accessibility & contrast

On white

8.63
#871878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871878
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871878#FFFFFF#000000##FFFFFF
##8718781.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16417A
Deuteranopia (green-blind)
#425175
Tritanopia (blue-blind)
#8E2448
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871878;
/* rgb */ color: rgb(135, 24, 120);
/* oklch */ color: oklch(43.9% 0.176 334.6);
Tailwind
colors: {
  custom: {
    50: '#ae649f',
    500: '#871878',
    950: '#000000',
  },
}
SCSS
$custom: #871878;
$custom-light: #ae649f;
$custom-dark: #000000;
JSON
{
  "hex": "#871878",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 308.108,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43874,
    "c": 0.17612,
    "h": 334.6
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#871878
secondary
#40BB51
accent
#ED533B
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871878

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

Preview Lab → · Contrast checker → · Palette generator →

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