#871F8D#871F8D

#871F8D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.186 H 325.6°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#871F8D
RGBrgb(135, 31, 141)
HSLhsl(297, 64%, 34%)
HSVhsv(297, 78%, 55%)
CMYKcmyk(4.3%, 78%, 0%, 44.7%)
CIE-LABlab(34.10, 55.99, -37.62)
CIE-LCHlch(34.10, 67.45, 326.11°)
OKLaboklab(45.64% 0.1531 -0.1047)
OKLCHoklch(45.64% 0.186 325.6)
XYZxyz(15.2890, 8.0550, 25.9436)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F8D #258D1F
analogous
#501F8D #871F8D #8D1F5C
triadic
#871F8D #8D871F #1F8D87
tetradic
#871F8D #8D501F #258D1F #1F5C8D
square
#871F8D #8D501F #258D1F #1F5C8D
split-complementary
#871F8D #5C8D1F #1F8D50
monochromatic
#270929 #57145B #871F8D #B72ABF #D14ED8

Accessibility & contrast

On white

8.04
#871F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#871F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F8D
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F8D#FFFFFF#000000##FFFFFF
##871F8D1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#38548A
Tritanopia (blue-blind)
#8A3355
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871f8d;
/* rgb */ color: rgb(135, 31, 141);
/* oklch */ color: oklch(45.6% 0.186 325.6);
Tailwind
colors: {
  custom: {
    50: '#ae68af',
    500: '#871f8d',
    950: '#000000',
  },
}
SCSS
$custom: #871f8d;
$custom-light: #ae68af;
$custom-dark: #000000;
JSON
{
  "hex": "#871f8d",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 296.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45641,
    "c": 0.18552,
    "h": 325.6
  },
  "luminance": 0.08054
}

Semantic roles & 50–950 ramp

primary
#871F8D
secondary
#53BB4D
accent
#E7414A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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