#871F77#871F77

#871F77 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.168 H 335.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#871F77
RGBrgb(135, 31, 119)
HSLhsl(309, 63%, 33%)
HSVhsv(309, 77%, 53%)
CMYKcmyk(0%, 77%, 11.9%, 47.1%)
CIE-LABlab(32.84, 52.35, -25.89)
CIE-LCHlch(32.84, 58.40, 333.69°)
OKLaboklab(44.34% 0.1529 -0.0707)
OKLCHoklch(44.34% 0.168 335.2)
XYZxyz(13.8116, 7.4640, 18.1625)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#871F77 #1F872F
analogous
#631F87 #871F77 #871F43
triadic
#871F77 #77871F #1F7787
tetradic
#871F77 #87631F #1F872F #1F4387
square
#871F77 #87631F #1F872F #1F4387
split-complementary
#871F77 #43871F #1F8763
monochromatic
#23081F #55144B #871F77 #B92AA3 #D64BC0

Accessibility & contrast

On white

8.42
#871F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#871F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #871F77
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##871F77#FFFFFF#000000##FFFFFF
##871F771.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4379
Deuteranopia (green-blind)
#455375
Tritanopia (blue-blind)
#8E2849
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #871f77;
/* rgb */ color: rgb(135, 31, 119);
/* oklch */ color: oklch(44.3% 0.168 335.2);
Tailwind
colors: {
  custom: {
    50: '#ad679e',
    500: '#871f77',
    950: '#000000',
  },
}
SCSS
$custom: #871f77;
$custom-light: #ad679e;
$custom-dark: #000000;
JSON
{
  "hex": "#871f77",
  "rgb": {
    "r": 135,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 309.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.44337,
    "c": 0.16847,
    "h": 335.2
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#871F77
secondary
#4AB85B
accent
#E65B42
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #871F77

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

Preview Lab → · Contrast checker → · Palette generator →

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