#871F97#871F97

#871F97 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.194 H 321.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#871F97
RGBrgb(135, 31, 151)
HSLhsl(292, 66%, 36%)
HSVhsv(292, 79%, 59%)
CMYKcmyk(10.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(34.73, 57.78, -42.73)
CIE-LCHlch(34.73, 71.86, 323.52°)
OKLaboklab(46.3% 0.1523 -0.1197)
OKLCHoklch(46.3% 0.194 321.8)
XYZxyz(16.0670, 8.3662, 30.0407)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F97 #2F971F
analogous
#4B1F97 #871F97 #971F6B
triadic
#871F97 #97871F #1F9787
tetradic
#871F97 #974B1F #2F971F #1F6B97
square
#871F97 #974B1F #2F971F #1F6B97
split-complementary
#871F97 #6B971F #1F974B
monochromatic
#2C0A31 #5A1564 #871F97 #B429CA #CA54DC

Accessibility & contrast

On white

7.86
#871F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#871F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F97
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F97#FFFFFF#000000##FFFFFF
##871F971.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#315594
Tritanopia (blue-blind)
#88385B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871f97;
/* rgb */ color: rgb(135, 31, 151);
/* oklch */ color: oklch(46.3% 0.194 321.8);
Tailwind
colors: {
  custom: {
    50: '#ae68b6',
    500: '#871f97',
    950: '#000000',
  },
}
SCSS
$custom: #871f97;
$custom-light: #ae68b6;
$custom-dark: #000000;
JSON
{
  "hex": "#871f97",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 292,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46297,
    "c": 0.1937,
    "h": 321.8
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#871F97
secondary
#61BF52
accent
#E93F56
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #871F97

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

Preview Lab → · Contrast checker → · Palette generator →

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