#871978#871978

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

Color values

HEX#871978
RGBrgb(135, 25, 120)
HSLhsl(308, 69%, 31%)
HSVhsv(308, 81%, 53%)
CMYKcmyk(0%, 81.5%, 11.1%, 47.1%)
CIE-LABlab(32.27, 54.31, -27.42)
CIE-LCHlch(32.27, 60.84, 333.21°)
OKLaboklab(43.94% 0.1583 -0.0751)
OKLCHoklch(43.94% 0.175 334.6)
XYZxyz(13.7296, 7.2035, 18.4330)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871978 #198728
analogous
#5F1987 #871978 #871941
triadic
#871978 #788719 #197887
tetradic
#871978 #875F19 #198728 #194187
square
#871978 #875F19 #198728 #194187
split-complementary
#871978 #418719 #19875F
monochromatic
#20061C #530F4A #871978 #BB23A6 #DB3FC6

Accessibility & contrast

On white

8.61
#871978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #871978
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871978#FFFFFF#000000##FFFFFF
##8719781.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871978;
/* rgb */ color: rgb(135, 25, 120);
/* oklch */ color: oklch(43.9% 0.175 334.6);
Tailwind
colors: {
  custom: {
    50: '#ae649f',
    500: '#871978',
    950: '#000000',
  },
}
SCSS
$custom: #871978;
$custom-light: #ae649f;
$custom-dark: #000000;
JSON
{
  "hex": "#871978",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 308.182,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43941,
    "c": 0.17522,
    "h": 334.6
  },
  "luminance": 0.07202
}

Semantic roles & 50–950 ramp

primary
#871978
secondary
#41BA52
accent
#EC543C
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #871978

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

Preview Lab → · Contrast checker → · Palette generator →

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