#871F89#871F89

#871F89 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.182 H 327.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#871F89
RGBrgb(135, 31, 137)
HSLhsl(299, 63%, 33%)
HSVhsv(299, 77%, 54%)
CMYKcmyk(1.5%, 77.4%, 0%, 46.3%)
CIE-LABlab(33.85, 55.30, -35.53)
CIE-LCHlch(33.85, 65.73, 327.27°)
OKLaboklab(45.39% 0.1533 -0.0986)
OKLCHoklch(45.39% 0.182 327.2)
XYZxyz(14.9968, 7.9381, 24.4044)
Luminance0.0794 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F89 #21891F
analogous
#521F89 #871F89 #891F56
triadic
#871F89 #89871F #1F8987
tetradic
#871F89 #89521F #21891F #1F5689
square
#871F89 #89521F #21891F #1F5689
split-complementary
#871F89 #56891F #1F8952
monochromatic
#250825 #561457 #871F89 #B82ABB #D44CD6

Accessibility & contrast

On white

8.12
#871F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#871F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F89
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F89#FFFFFF#000000##FFFFFF
##871F891.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478C
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#8B3153
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871f89;
/* rgb */ color: rgb(135, 31, 137);
/* oklch */ color: oklch(45.4% 0.182 327.2);
Tailwind
colors: {
  custom: {
    50: '#ad67ac',
    500: '#871f89',
    950: '#000000',
  },
}
SCSS
$custom: #871f89;
$custom-light: #ad67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#871f89",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 298.868,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45389,
    "c": 0.18232,
    "h": 327.2
  },
  "luminance": 0.07937
}

Semantic roles & 50–950 ramp

primary
#871F89
secondary
#4DB94B
accent
#E64245
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F89

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

Preview Lab → · Contrast checker → · Palette generator →

#871F89 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva