#871FB2#871FB2

#871FB2 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.2% C 0.216 H 313.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#871FB2
RGBrgb(135, 31, 178)
HSLhsl(282, 70%, 41%)
HSVhsv(282, 83%, 70%)
CMYKcmyk(24.2%, 82.6%, 0%, 30.2%)
CIE-LABlab(36.64, 62.95, -55.90)
CIE-LCHlch(36.64, 84.19, 318.39°)
OKLaboklab(48.24% 0.1476 -0.1583)
OKLCHoklch(48.24% 0.216 313)
XYZxyz(18.5161, 9.3458, 42.9394)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871FB2 #4AB21F
analogous
#3D1FB2 #871FB2 #B21F93
triadic
#871FB2 #B2871F #1FB287
tetradic
#871FB2 #B23D1F #4AB21F #1F93B2
square
#871FB2 #B23D1F #4AB21F #1F93B2
split-complementary
#871FB2 #93B21F #1FB23D
monochromatic
#380D4A #5F167E #871FB2 #AA33DB #C067E5

Accessibility & contrast

On white

7.32
#871FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#871FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871FB2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871FB2#FFFFFF#000000##FFFFFF
##871FB21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#82456B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #871fb2;
/* rgb */ color: rgb(135, 31, 178);
/* oklch */ color: oklch(48.2% 0.216 313.0);
Tailwind
colors: {
  custom: {
    50: '#af69ca',
    500: '#871fb2',
    950: '#000000',
  },
}
SCSS
$custom: #871fb2;
$custom-light: #af69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#871fb2",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 178
  },
  "hsl": {
    "h": 282.449,
    "s": 70.335,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4824,
    "c": 0.21647,
    "h": 313
  },
  "luminance": 0.09345
}

Semantic roles & 50–950 ramp

primary
#871FB2
secondary
#81CA63
accent
#ED3B6F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #871FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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