#871FA0#871FA0

#871FA0 is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 46.9% C 0.201 H 318.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#871FA0
RGBrgb(135, 31, 160)
HSLhsl(288, 68%, 37%)
HSVhsv(288, 81%, 63%)
CMYKcmyk(15.6%, 80.6%, 0%, 37.3%)
CIE-LABlab(35.34, 59.45, -47.22)
CIE-LCHlch(35.34, 75.92, 321.54°)
OKLaboklab(46.92% 0.1511 -0.1328)
OKLCHoklch(46.92% 0.201 318.7)
XYZxyz(16.8260, 8.6698, 34.0380)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FA0 #38A01F
analogous
#461FA0 #871FA0 #A01F79
triadic
#871FA0 #A0871F #1FA087
tetradic
#871FA0 #A0461F #38A01F #1F79A0
square
#871FA0 #A0461F #38A01F #1F79A0
split-complementary
#871FA0 #79A01F #1FA046
monochromatic
#300B39 #5C156D #871FA0 #B229D3 #C55ADF

Accessibility & contrast

On white

7.68
#871FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#871FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871FA0
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FA0#FFFFFF#000000##FFFFFF
##871FA01.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#27569D
Tritanopia (blue-blind)
#863C60
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #871fa0;
/* rgb */ color: rgb(135, 31, 160);
/* oklch */ color: oklch(46.9% 0.201 318.7);
Tailwind
colors: {
  custom: {
    50: '#ae68bd',
    500: '#871fa0',
    950: '#000000',
  },
}
SCSS
$custom: #871fa0;
$custom-light: #ae68bd;
$custom-dark: #000000;
JSON
{
  "hex": "#871fa0",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 288.372,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46917,
    "c": 0.2012,
    "h": 318.7
  },
  "luminance": 0.08669
}

Semantic roles & 50–950 ramp

primary
#871FA0
secondary
#6DC358
accent
#EA3D5F
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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