#87168B#87168B

#87168B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.192 H 326.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#87168B
RGBrgb(135, 22, 139)
HSLhsl(298, 73%, 32%)
HSVhsv(298, 84%, 55%)
CMYKcmyk(2.9%, 84.2%, 0%, 45.5%)
CIE-LABlab(33.11, 58.13, -37.95)
CIE-LCHlch(33.11, 69.43, 326.86°)
OKLaboklab(44.9% 0.1602 -0.1056)
OKLCHoklch(44.9% 0.192 326.6)
XYZxyz(14.9385, 7.5899, 25.0993)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87168B #1A8B16
analogous
#4D168B #87168B #8B1655
triadic
#87168B #8B8716 #168B87
tetradic
#87168B #8B4D16 #1A8B16 #16558B
square
#87168B #8B4D16 #1A8B16 #16558B
split-complementary
#87168B #558B16 #168B4D
monochromatic
#200521 #540E56 #87168B #BA1EC0 #DA3BE0

Accessibility & contrast

On white

8.34
#87168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#87168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87168B
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87168B#FFFFFF#000000##FFFFFF
##87168B1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#365388
Tritanopia (blue-blind)
#8B2D52
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #87168b;
/* rgb */ color: rgb(135, 22, 139);
/* oklch */ color: oklch(44.9% 0.192 326.6);
Tailwind
colors: {
  custom: {
    50: '#ae64ad',
    500: '#87168b',
    950: '#000000',
  },
}
SCSS
$custom: #87168b;
$custom-light: #ae64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#87168b",
  "rgb": {
    "r": 135,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 297.949,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.44904,
    "c": 0.1919,
    "h": 326.6
  },
  "luminance": 0.07589
}

Semantic roles & 50–950 ramp

primary
#87168B
secondary
#42BF3E
accent
#EF383F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87168B

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

Preview Lab → · Contrast checker → · Palette generator →

#87168B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva