#871F8E#871F8E

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

Color values

HEX#871F8E
RGBrgb(135, 31, 142)
HSLhsl(296, 64%, 34%)
HSVhsv(296, 78%, 56%)
CMYKcmyk(4.9%, 78.2%, 0%, 44.3%)
CIE-LABlab(34.16, 56.17, -38.13)
CIE-LCHlch(34.16, 67.89, 325.83°)
OKLaboklab(45.71% 0.1531 -0.1062)
OKLCHoklch(45.71% 0.186 325.2)
XYZxyz(15.3638, 8.0849, 26.3373)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F8E #268E1F
analogous
#501F8E #871F8E #8E1F5E
triadic
#871F8E #8E871F #1F8E87
tetradic
#871F8E #8E501F #268E1F #1F5E8E
square
#871F8E #8E501F #268E1F #1F5E8E
split-complementary
#871F8E #5E8E1F #1F8E50
monochromatic
#27092A #57145C #871F8E #B72AC0 #D04FD9

Accessibility & contrast

On white

8.03
#871F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#871F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F8E
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F8E#FFFFFF#000000##FFFFFF
##871F8E1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#38558B
Tritanopia (blue-blind)
#8A3356
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871f8e;
/* rgb */ color: rgb(135, 31, 142);
/* oklch */ color: oklch(45.7% 0.186 325.2);
Tailwind
colors: {
  custom: {
    50: '#ae68af',
    500: '#871f8e',
    950: '#000000',
  },
}
SCSS
$custom: #871f8e;
$custom-light: #ae68af;
$custom-dark: #000000;
JSON
{
  "hex": "#871f8e",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 296.216,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45705,
    "c": 0.18634,
    "h": 325.2
  },
  "luminance": 0.08084
}

Semantic roles & 50–950 ramp

primary
#871F8E
secondary
#54BB4D
accent
#E7414B
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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