#87167E#87167E

#87167E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.182 H 331.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#87167E
RGBrgb(135, 22, 126)
HSLhsl(305, 72%, 31%)
HSVhsv(305, 84%, 53%)
CMYKcmyk(0%, 83.7%, 6.7%, 47.1%)
CIE-LABlab(32.33, 56.02, -31.10)
CIE-LCHlch(32.33, 64.07, 330.96°)
OKLaboklab(44.1% 0.1607 -0.0857)
OKLCHoklch(44.1% 0.182 331.9)
XYZxyz(14.0445, 7.2323, 20.3909)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87167E #16871F
analogous
#571687 #87167E #871645
triadic
#87167E #7E8716 #167E87
tetradic
#87167E #875716 #16871F #164587
square
#87167E #875716 #16871F #164587
split-complementary
#87167E #458716 #168757
monochromatic
#1E051C #520D4D #87167E #BC1FAF #DF39D1

Accessibility & contrast

On white

8.58
#87167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87167E
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87167E#FFFFFF#000000##FFFFFF
##87167E1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87167e;
/* rgb */ color: rgb(135, 22, 126);
/* oklch */ color: oklch(44.1% 0.182 331.9);
Tailwind
colors: {
  custom: {
    50: '#ae64a4',
    500: '#87167e',
    950: '#000000',
  },
}
SCSS
$custom: #87167e;
$custom-light: #ae64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87167e",
  "rgb": {
    "r": 135,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 304.779,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.44096,
    "c": 0.18217,
    "h": 331.9
  },
  "luminance": 0.07231
}

Semantic roles & 50–950 ramp

primary
#87167E
secondary
#3EBB48
accent
#EF4839
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87167E

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

Preview Lab → · Contrast checker → · Palette generator →

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