#871879#871879

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

Color values

HEX#871879
RGBrgb(135, 24, 121)
HSLhsl(308, 70%, 31%)
HSVhsv(308, 82%, 53%)
CMYKcmyk(0%, 82.2%, 10.4%, 47.1%)
CIE-LABlab(32.23, 54.73, -28.12)
CIE-LCHlch(32.23, 61.53, 332.81°)
OKLaboklab(43.93% 0.1591 -0.0771)
OKLCHoklch(43.93% 0.177 334.1)
XYZxyz(13.7696, 7.1859, 18.7473)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871879 #188726
analogous
#5D1887 #871879 #871841
triadic
#871879 #798718 #187987
tetradic
#871879 #875D18 #188726 #184187
square
#871879 #875D18 #188726 #184187
split-complementary
#871879 #418718 #18875D
monochromatic
#1F061C #530F4A #871879 #BB21A8 #DC3DC8

Accessibility & contrast

On white

8.62
#871879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#871879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871879
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871879#FFFFFF#000000##FFFFFF
##8718791.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15427B
Deuteranopia (green-blind)
#415176
Tritanopia (blue-blind)
#8E2448
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871879;
/* rgb */ color: rgb(135, 24, 121);
/* oklch */ color: oklch(43.9% 0.177 334.1);
Tailwind
colors: {
  custom: {
    50: '#ae64a0',
    500: '#871879',
    950: '#000000',
  },
}
SCSS
$custom: #871879;
$custom-light: #ae64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#871879",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 307.568,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43931,
    "c": 0.17684,
    "h": 334.1
  },
  "luminance": 0.07185
}

Semantic roles & 50–950 ramp

primary
#871879
secondary
#40BB50
accent
#ED523B
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871879

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

Preview Lab → · Contrast checker → · Palette generator →

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