#871EB2#871EB2

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

Color values

HEX#871EB2
RGBrgb(135, 30, 178)
HSLhsl(283, 71%, 41%)
HSVhsv(283, 83%, 70%)
CMYKcmyk(24.2%, 83.1%, 0%, 30.2%)
CIE-LABlab(36.55, 63.23, -56.06)
CIE-LCHlch(36.55, 84.50, 318.44°)
OKLaboklab(48.17% 0.1483 -0.1588)
OKLCHoklch(48.17% 0.217 313)
XYZxyz(18.4904, 9.2944, 42.9308)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871EB2 #49B21E
analogous
#3D1EB2 #871EB2 #B21E93
triadic
#871EB2 #B2871E #1EB287
tetradic
#871EB2 #B23D1E #49B21E #1E93B2
square
#871EB2 #B23D1E #49B21E #1E93B2
split-complementary
#871EB2 #93B21E #1EB23D
monochromatic
#380C49 #5F157E #871EB2 #AA31DC #C065E5

Accessibility & contrast

On white

7.35
#871EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#871EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871EB2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871EB2#FFFFFF#000000##FFFFFF
##871EB21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #871eb2;
/* rgb */ color: rgb(135, 30, 178);
/* oklch */ color: oklch(48.2% 0.217 313.0);
Tailwind
colors: {
  custom: {
    50: '#af69ca',
    500: '#871eb2',
    950: '#000000',
  },
}
SCSS
$custom: #871eb2;
$custom-light: #af69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#871eb2",
  "rgb": {
    "r": 135,
    "g": 30,
    "b": 178
  },
  "hsl": {
    "h": 282.568,
    "s": 71.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48172,
    "c": 0.21727,
    "h": 313
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#871EB2
secondary
#80CA62
accent
#EE3A6E
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #871EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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