#871DC9#871DC9

#871DC9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.9% C 0.238 H 306.8°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#871DC9
RGBrgb(135, 29, 201)
HSLhsl(277, 75%, 45%)
HSVhsv(277, 86%, 79%)
CMYKcmyk(32.8%, 85.6%, 0%, 21.2%)
CIE-LABlab(38.28, 68.16, -66.77)
CIE-LCHlch(38.28, 95.41, 315.59°)
OKLaboklab(49.95% 0.1426 -0.1902)
OKLCHoklch(49.95% 0.238 306.8)
XYZxyz(20.9713, 10.2469, 56.1201)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871DC9 #5FC91D
analogous
#311DC9 #871DC9 #C91DB5
triadic
#871DC9 #C9871D #1DC987
tetradic
#871DC9 #C9311D #5FC91D #1DB5C9
square
#871DC9 #C9311D #5FC91D #1DB5C9
split-complementary
#871DC9 #B5C91D #1DC931
monochromatic
#3F0E5E #631594 #871DC9 #A540E3 #BE75EB

Accessibility & contrast

On white

6.89
#871DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#871DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #871DC9
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871DC9#FFFFFF#000000##FFFFFF
##871DC91.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#7B4F78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #871dc9;
/* rgb */ color: rgb(135, 29, 201);
/* oklch */ color: oklch(49.9% 0.238 306.8);
Tailwind
colors: {
  custom: {
    50: '#b16adb',
    500: '#871dc9',
    950: '#000000',
  },
}
SCSS
$custom: #871dc9;
$custom-light: #b16adb;
$custom-dark: #000000;
JSON
{
  "hex": "#871dc9",
  "rgb": {
    "r": 135,
    "g": 29,
    "b": 201
  },
  "hsl": {
    "h": 276.977,
    "s": 74.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49945,
    "c": 0.23771,
    "h": 306.8
  },
  "luminance": 0.10247
}

Semantic roles & 50–950 ramp

primary
#871DC9
secondary
#95D270
accent
#F1367E
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#120715
muted
#817A83

Preview Lab

Preview with #871DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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