#87167F#87167F

#87167F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.183 H 331.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#87167F
RGBrgb(135, 22, 127)
HSLhsl(304, 72%, 31%)
HSVhsv(304, 84%, 53%)
CMYKcmyk(0%, 83.7%, 5.9%, 47.1%)
CIE-LABlab(32.39, 56.18, -31.63)
CIE-LCHlch(32.39, 64.47, 330.62°)
OKLaboklab(44.16% 0.1607 -0.0873)
OKLCHoklch(44.16% 0.183 331.5)
XYZxyz(14.1094, 7.2582, 20.7324)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87167F #16871E
analogous
#561687 #87167F #871646
triadic
#87167F #7F8716 #167F87
tetradic
#87167F #875616 #16871E #164687
square
#87167F #875616 #16871E #164687
split-complementary
#87167F #468716 #168756
monochromatic
#1E051C #520D4D #87167F #BC1FB1 #DF39D3

Accessibility & contrast

On white

8.57
#87167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#87167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87167F
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87167F#FFFFFF#000000##FFFFFF
##87167F1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064282
Deuteranopia (green-blind)
#3E517C
Tritanopia (blue-blind)
#8D264B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #87167f;
/* rgb */ color: rgb(135, 22, 127);
/* oklch */ color: oklch(44.2% 0.183 331.5);
Tailwind
colors: {
  custom: {
    50: '#ae64a4',
    500: '#87167f',
    950: '#000000',
  },
}
SCSS
$custom: #87167f;
$custom-light: #ae64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87167f",
  "rgb": {
    "r": 135,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 304.248,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.44155,
    "c": 0.1829,
    "h": 331.5
  },
  "luminance": 0.07257
}

Semantic roles & 50–950 ramp

primary
#87167F
secondary
#3EBB47
accent
#EF4639
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87167F

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

Preview Lab → · Contrast checker → · Palette generator →

#87167F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva