#871E8F#871E8F

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

Color values

HEX#871E8F
RGBrgb(135, 30, 143)
HSLhsl(296, 65%, 34%)
HSVhsv(296, 79%, 56%)
CMYKcmyk(5.6%, 79%, 0%, 43.9%)
CIE-LABlab(34.12, 56.65, -38.82)
CIE-LCHlch(34.12, 68.67, 325.58°)
OKLaboklab(45.69% 0.1539 -0.1082)
OKLCHoklch(45.69% 0.188 324.9)
XYZxyz(15.4135, 8.0636, 26.7259)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871E8F #268F1E
analogous
#4F1E8F #871E8F #8F1E5F
triadic
#871E8F #8F871E #1E8F87
tetradic
#871E8F #8F4F1E #268F1E #1E5F8F
square
#871E8F #8F4F1E #268F1E #1E5F8F
split-complementary
#871E8F #5F8F1E #1E8F4F
monochromatic
#27092A #57135C #871E8F #B729C2 #D04EDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##871E8F#FFFFFF#000000##FFFFFF
##871E8F1.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)
#004892
Deuteranopia (green-blind)
#37548C
Tritanopia (blue-blind)
#8A3356
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #871e8f;
/* rgb */ color: rgb(135, 30, 143);
/* oklch */ color: oklch(45.7% 0.188 324.9);
Tailwind
colors: {
  custom: {
    50: '#ae67b0',
    500: '#871e8f',
    950: '#000000',
  },
}
SCSS
$custom: #871e8f;
$custom-light: #ae67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871e8f",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 295.752,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45694,
    "c": 0.18812,
    "h": 324.9
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#871E8F
secondary
#54BC4C
accent
#E8404B
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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