#87187B#87187B

#87187B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.178 H 333.3°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#87187B
RGBrgb(135, 24, 123)
HSLhsl(306, 70%, 31%)
HSVhsv(306, 82%, 53%)
CMYKcmyk(0%, 82.2%, 8.9%, 47.1%)
CIE-LABlab(32.34, 55.04, -29.20)
CIE-LCHlch(32.34, 62.30, 332.05°)
OKLaboklab(44.05% 0.1592 -0.0802)
OKLCHoklch(44.05% 0.178 333.3)
XYZxyz(13.8936, 7.2355, 19.3999)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87187B #188724
analogous
#5B1887 #87187B #871843
triadic
#87187B #7B8718 #187B87
tetradic
#87187B #875B18 #188724 #184387
square
#87187B #875B18 #188724 #184387
split-complementary
#87187B #438718 #18875B
monochromatic
#1F061C #530F4C #87187B #BB21AA #DC3DCB

Accessibility & contrast

On white

8.58
#87187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#87187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87187B
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87187B#FFFFFF#000000##FFFFFF
##87187B1.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)
#12427E
Deuteranopia (green-blind)
#405278
Tritanopia (blue-blind)
#8D254A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #87187b;
/* rgb */ color: rgb(135, 24, 123);
/* oklch */ color: oklch(44.0% 0.178 333.3);
Tailwind
colors: {
  custom: {
    50: '#ae64a1',
    500: '#87187b',
    950: '#000000',
  },
}
SCSS
$custom: #87187b;
$custom-light: #ae64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#87187b",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 306.486,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44046,
    "c": 0.17829,
    "h": 333.3
  },
  "luminance": 0.07234
}

Semantic roles & 50–950 ramp

primary
#87187B
secondary
#40BB4D
accent
#ED4E3B
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87187B

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

Preview Lab → · Contrast checker → · Palette generator →

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