#871FB4#871FB4

#871FB4 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.4% C 0.218 H 312.4°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#871FB4
RGBrgb(135, 31, 180)
HSLhsl(282, 71%, 41%)
HSVhsv(282, 83%, 71%)
CMYKcmyk(25%, 82.8%, 0%, 29.4%)
CIE-LABlab(36.79, 63.35, -56.85)
CIE-LCHlch(36.79, 85.11, 318.10°)
OKLaboklab(48.39% 0.1472 -0.1611)
OKLCHoklch(48.39% 0.218 312.4)
XYZxyz(18.7184, 9.4267, 44.0047)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FB4 #4CB41F
analogous
#3D1FB4 #871FB4 #B41F97
triadic
#871FB4 #B4871F #1FB487
tetradic
#871FB4 #B43D1F #4CB41F #1F97B4
square
#871FB4 #B43D1F #4CB41F #1F97B4
split-complementary
#871FB4 #97B41F #1FB43D
monochromatic
#390D4C #601680 #871FB4 #A934DC #BF68E5

Accessibility & contrast

On white

7.28
#871FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#871FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871FB4
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FB4#FFFFFF#000000##FFFFFF
##871FB41.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#82466C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #871fb4;
/* rgb */ color: rgb(135, 31, 180);
/* oklch */ color: oklch(48.4% 0.218 312.4);
Tailwind
colors: {
  custom: {
    50: '#af6acb',
    500: '#871fb4',
    950: '#000000',
  },
}
SCSS
$custom: #871fb4;
$custom-light: #af6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#871fb4",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 281.879,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48393,
    "c": 0.21819,
    "h": 312.4
  },
  "luminance": 0.09426
}

Semantic roles & 50–950 ramp

primary
#871FB4
secondary
#83CB64
accent
#ED3A70
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #871FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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