#87187D#87187D

#87187D is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.180 H 332.4°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#87187D
RGBrgb(135, 24, 125)
HSLhsl(305, 70%, 31%)
HSVhsv(305, 82%, 53%)
CMYKcmyk(0%, 82.2%, 7.4%, 47.1%)
CIE-LABlab(32.45, 55.35, -30.28)
CIE-LCHlch(32.45, 63.09, 331.32°)
OKLaboklab(44.16% 0.1593 -0.0834)
OKLCHoklch(44.16% 0.18 332.4)
XYZxyz(14.0200, 7.2860, 20.0660)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87187D #188722
analogous
#591887 #87187D #871845
triadic
#87187D #7D8718 #187D87
tetradic
#87187D #875918 #188722 #184587
square
#87187D #875918 #188722 #184587
split-complementary
#87187D #458718 #188759
monochromatic
#1F061D #530F4D #87187D #BB21AD #DC3DCE

Accessibility & contrast

On white

8.55
#87187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#87187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87187D
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87187D#FFFFFF#000000##FFFFFF
##87187D1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4280
Deuteranopia (green-blind)
#3F527A
Tritanopia (blue-blind)
#8D264B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #87187d;
/* rgb */ color: rgb(135, 24, 125);
/* oklch */ color: oklch(44.2% 0.180 332.4);
Tailwind
colors: {
  custom: {
    50: '#ae64a3',
    500: '#87187d',
    950: '#000000',
  },
}
SCSS
$custom: #87187d;
$custom-light: #ae64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#87187d",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 305.405,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44162,
    "c": 0.17975,
    "h": 332.4
  },
  "luminance": 0.07285
}

Semantic roles & 50–950 ramp

primary
#87187D
secondary
#40BB4B
accent
#ED4B3B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87187D

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

Preview Lab → · Contrast checker → · Palette generator →

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