#87168D#87168D

#87168D is a mid, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.193 H 325.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#87168D
RGBrgb(135, 22, 141)
HSLhsl(297, 73%, 32%)
HSVhsv(297, 84%, 55%)
CMYKcmyk(4.3%, 84.4%, 0%, 44.7%)
CIE-LABlab(33.24, 58.47, -38.98)
CIE-LCHlch(33.24, 70.28, 326.31°)
OKLaboklab(45.03% 0.16 -0.1087)
OKLCHoklch(45.03% 0.193 325.8)
XYZxyz(15.0860, 7.6489, 25.8759)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87168D #1C8D16
analogous
#4C168D #87168D #8D1658
triadic
#87168D #8D8716 #168D87
tetradic
#87168D #8D4C16 #1C8D16 #16588D
square
#87168D #8D4C16 #1C8D16 #16588D
split-complementary
#87168D #588D16 #168D4C
monochromatic
#220523 #540E58 #87168D #BA1EC2 #D83DE1

Accessibility & contrast

On white

8.30
#87168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#87168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87168D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87168D#FFFFFF#000000##FFFFFF
##87168D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#35538A
Tritanopia (blue-blind)
#8A2E54
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #87168d;
/* rgb */ color: rgb(135, 22, 141);
/* oklch */ color: oklch(45.0% 0.193 325.8);
Tailwind
colors: {
  custom: {
    50: '#ae65af',
    500: '#87168d',
    950: '#000000',
  },
}
SCSS
$custom: #87168d;
$custom-light: #ae65af;
$custom-dark: #000000;
JSON
{
  "hex": "#87168d",
  "rgb": {
    "r": 135,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 296.975,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45034,
    "c": 0.19344,
    "h": 325.8
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#87168D
secondary
#45C13E
accent
#F03841
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87168D

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

Preview Lab → · Contrast checker → · Palette generator →

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