#871D97#871D97

#871D97 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.2% C 0.196 H 321.9°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#871D97
RGBrgb(135, 29, 151)
HSLhsl(292, 68%, 35%)
HSVhsv(292, 81%, 59%)
CMYKcmyk(10.6%, 80.8%, 0%, 40.8%)
CIE-LABlab(34.53, 58.38, -43.06)
CIE-LCHlch(34.53, 72.54, 323.59°)
OKLaboklab(46.15% 0.1539 -0.1206)
OKLCHoklch(46.15% 0.196 321.9)
XYZxyz(16.0164, 8.2649, 30.0238)
Luminance0.0826 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871D97 #2D971D
analogous
#4A1D97 #871D97 #971D6A
triadic
#871D97 #97871D #1D9787
tetradic
#871D97 #974A1D #2D971D #1D6A97
square
#871D97 #974A1D #2D971D #1D6A97
split-complementary
#871D97 #6A971D #1D974A
monochromatic
#2B0930 #591364 #871D97 #B527CA #CB51DE

Accessibility & contrast

On white

7.92
#871D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#871D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871D97
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871D97#FFFFFF#000000##FFFFFF
##871D971.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#305594
Tritanopia (blue-blind)
#88375B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #871d97;
/* rgb */ color: rgb(135, 29, 151);
/* oklch */ color: oklch(46.2% 0.196 321.9);
Tailwind
colors: {
  custom: {
    50: '#ae67b6',
    500: '#871d97',
    950: '#000000',
  },
}
SCSS
$custom: #871d97;
$custom-light: #ae67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#871d97",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 292.131,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46151,
    "c": 0.19555,
    "h": 321.9
  },
  "luminance": 0.08264
}

Semantic roles & 50–950 ramp

primary
#871D97
secondary
#5EC04F
accent
#EB3D54
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871D97

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

Preview Lab → · Contrast checker → · Palette generator →

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