#871979#871979

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

Color values

HEX#871979
RGBrgb(135, 25, 121)
HSLhsl(308, 69%, 31%)
HSVhsv(308, 81%, 53%)
CMYKcmyk(0%, 81.5%, 10.4%, 47.1%)
CIE-LABlab(32.32, 54.46, -27.97)
CIE-LCHlch(32.32, 61.22, 332.82°)
OKLaboklab(44% 0.1583 -0.0767)
OKLCHoklch(44% 0.176 334.2)
XYZxyz(13.7906, 7.2279, 18.7543)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871979 #198727
analogous
#5E1987 #871979 #871942
triadic
#871979 #798719 #197987
tetradic
#871979 #875E19 #198727 #194287
square
#871979 #875E19 #198727 #194287
split-complementary
#871979 #428719 #19875E
monochromatic
#20061C #530F4B #871979 #BB23A7 #DB3FC8

Accessibility & contrast

On white

8.59
#871979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#871979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871979
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871979#FFFFFF#000000##FFFFFF
##8719791.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16427B
Deuteranopia (green-blind)
#425276
Tritanopia (blue-blind)
#8E2549
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #871979;
/* rgb */ color: rgb(135, 25, 121);
/* oklch */ color: oklch(44.0% 0.176 334.2);
Tailwind
colors: {
  custom: {
    50: '#ae65a0',
    500: '#871979',
    950: '#000000',
  },
}
SCSS
$custom: #871979;
$custom-light: #ae65a0;
$custom-dark: #000000;
JSON
{
  "hex": "#871979",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 307.636,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43998,
    "c": 0.17593,
    "h": 334.2
  },
  "luminance": 0.07227
}

Semantic roles & 50–950 ramp

primary
#871979
secondary
#41BA51
accent
#EC533C
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871979

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

Preview Lab → · Contrast checker → · Palette generator →

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