#871788#871788

#871788 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.8% C 0.189 H 327.8°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#871788
RGBrgb(135, 23, 136)
HSLhsl(299, 71%, 31%)
HSVhsv(299, 83%, 53%)
CMYKcmyk(0.7%, 83.1%, 0%, 46.7%)
CIE-LABlab(33.01, 57.39, -36.26)
CIE-LCHlch(33.01, 67.88, 327.72°)
OKLaboklab(44.77% 0.1597 -0.1007)
OKLCHoklch(44.77% 0.189 327.8)
XYZxyz(14.7418, 7.5424, 23.9672)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871788 #188817
analogous
#4E1788 #871788 #881750
triadic
#871788 #888717 #178887
tetradic
#871788 #884E17 #188817 #175088
square
#871788 #884E17 #188817 #175088
split-complementary
#871788 #508817 #17884E
monochromatic
#1F051F #530E54 #871788 #BB20BC #DC3BDE

Accessibility & contrast

On white

8.37
#871788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#871788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871788
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871788#FFFFFF#000000##FFFFFF
##8717881.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#395285
Tritanopia (blue-blind)
#8B2C51
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #871788;
/* rgb */ color: rgb(135, 23, 136);
/* oklch */ color: oklch(44.8% 0.189 327.8);
Tailwind
colors: {
  custom: {
    50: '#ae65ab',
    500: '#871788',
    950: '#000000',
  },
}
SCSS
$custom: #871788;
$custom-light: #ae65ab;
$custom-dark: #000000;
JSON
{
  "hex": "#871788",
  "rgb": {
    "r": 135,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 299.469,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44771,
    "c": 0.18883,
    "h": 327.8
  },
  "luminance": 0.07541
}

Semantic roles & 50–950 ramp

primary
#871788
secondary
#40BC3F
accent
#EE3A3C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #871788

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

Preview Lab → · Contrast checker → · Palette generator →

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