#871A8E#871A8E

#871A8E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.191 H 325.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#871A8E
RGBrgb(135, 26, 142)
HSLhsl(296, 69%, 33%)
HSVhsv(296, 82%, 56%)
CMYKcmyk(4.9%, 81.7%, 0%, 44.3%)
CIE-LABlab(33.66, 57.62, -38.94)
CIE-LCHlch(33.66, 69.55, 325.95°)
OKLaboklab(45.35% 0.1571 -0.1085)
OKLCHoklch(45.35% 0.191 325.4)
XYZxyz(15.2432, 7.8437, 26.2971)
Luminance0.0784 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871A8E #218E1A
analogous
#4D1A8E #871A8E #8E1A5B
triadic
#871A8E #8E871A #1A8E87
tetradic
#871A8E #8E4D1A #218E1A #1A5B8E
square
#871A8E #8E4D1A #218E1A #1A5B8E
split-complementary
#871A8E #5B8E1A #1A8E4D
monochromatic
#250727 #56115A #871A8E #B823C2 #D445DD

Accessibility & contrast

On white

8.18
#871A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#871A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871A8E
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871A8E#FFFFFF#000000##FFFFFF
##871A8E1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#35548B
Tritanopia (blue-blind)
#8A3155
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #871a8e;
/* rgb */ color: rgb(135, 26, 142);
/* oklch */ color: oklch(45.3% 0.191 325.4);
Tailwind
colors: {
  custom: {
    50: '#ae66b0',
    500: '#871a8e',
    950: '#000000',
  },
}
SCSS
$custom: #871a8e;
$custom-light: #ae66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#871a8e",
  "rgb": {
    "r": 135,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 296.379,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45348,
    "c": 0.19097,
    "h": 325.4
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#871A8E
secondary
#4DBE45
accent
#EC3C47
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #871A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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