#871D9E#871D9E

#871D9E is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.6% C 0.201 H 319.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#871D9E
RGBrgb(135, 29, 158)
HSLhsl(289, 69%, 37%)
HSVhsv(289, 82%, 62%)
CMYKcmyk(14.6%, 81.6%, 0%, 38%)
CIE-LABlab(35.00, 59.66, -46.55)
CIE-LCHlch(35.00, 75.68, 322.04°)
OKLaboklab(46.64% 0.153 -0.1309)
OKLCHoklch(46.64% 0.201 319.5)
XYZxyz(16.6018, 8.4991, 33.1071)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D9E #349E1D
analogous
#461D9E #871D9E #9E1D75
triadic
#871D9E #9E871D #1D9E87
tetradic
#871D9E #9E461D #349E1D #1D759E
square
#871D9E #9E461D #349E1D #1D759E
split-complementary
#871D9E #759E1D #1D9E46
monochromatic
#2F0A37 #5B146A #871D9E #B326D2 #C756E0

Accessibility & contrast

On white

7.78
#871D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#871D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D9E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D9E#FFFFFF#000000##FFFFFF
##871D9E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#28569B
Tritanopia (blue-blind)
#873A5F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871d9e;
/* rgb */ color: rgb(135, 29, 158);
/* oklch */ color: oklch(46.6% 0.201 319.5);
Tailwind
colors: {
  custom: {
    50: '#ae68bb',
    500: '#871d9e',
    950: '#000000',
  },
}
SCSS
$custom: #871d9e;
$custom-light: #ae68bb;
$custom-dark: #000000;
JSON
{
  "hex": "#871d9e",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 289.302,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46635,
    "c": 0.2013,
    "h": 319.5
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#871D9E
secondary
#67C354
accent
#EC3C5B
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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