#871B9F#871B9F

#871B9F is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.6% C 0.204 H 319.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#871B9F
RGBrgb(135, 27, 159)
HSLhsl(289, 71%, 36%)
HSVhsv(289, 83%, 62%)
CMYKcmyk(15.1%, 83%, 0%, 37.6%)
CIE-LABlab(34.88, 60.40, -47.36)
CIE-LCHlch(34.88, 76.75, 321.90°)
OKLaboklab(46.57% 0.1543 -0.1332)
OKLCHoklch(46.57% 0.204 319.2)
XYZxyz(16.6408, 8.4388, 33.5465)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871B9F #339F1B
analogous
#451B9F #871B9F #9F1B75
triadic
#871B9F #9F871B #1B9F87
tetradic
#871B9F #9F451B #339F1B #1B759F
square
#871B9F #9F451B #339F1B #1B759F
split-complementary
#871B9F #759F1B #1B9F45
monochromatic
#2E0936 #5B126B #871B9F #B324D3 #C853E2

Accessibility & contrast

On white

7.81
#871B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#871B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871B9F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871B9F#FFFFFF#000000##FFFFFF
##871B9F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#26559C
Tritanopia (blue-blind)
#873A5F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #871b9f;
/* rgb */ color: rgb(135, 27, 159);
/* oklch */ color: oklch(46.6% 0.204 319.2);
Tailwind
colors: {
  custom: {
    50: '#ae67bc',
    500: '#871b9f',
    950: '#000000',
  },
}
SCSS
$custom: #871b9f;
$custom-light: #ae67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#871b9f",
  "rgb": {
    "r": 135,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 289.091,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46572,
    "c": 0.2038,
    "h": 319.2
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#871B9F
secondary
#66C551
accent
#EE3A5B
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #871B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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