#87187C#87187C

#87187C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.179 H 332.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#87187C
RGBrgb(135, 24, 124)
HSLhsl(306, 70%, 31%)
HSVhsv(306, 82%, 53%)
CMYKcmyk(0%, 82.2%, 8.1%, 47.1%)
CIE-LABlab(32.39, 55.19, -29.74)
CIE-LCHlch(32.39, 62.70, 331.68°)
OKLaboklab(44.1% 0.1592 -0.0818)
OKLCHoklch(44.1% 0.179 332.8)
XYZxyz(13.9565, 7.2606, 19.7313)
Luminance0.0726 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87187C #188723
analogous
#5A1887 #87187C #871844
triadic
#87187C #7C8718 #187C87
tetradic
#87187C #875A18 #188723 #184487
square
#87187C #875A18 #188723 #184487
split-complementary
#87187C #448718 #18875A
monochromatic
#1F061D #530F4C #87187C #BB21AC #DC3DCD

Accessibility & contrast

On white

8.57
#87187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87187C
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87187C#FFFFFF#000000##FFFFFF
##87187C1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427F
Deuteranopia (green-blind)
#405279
Tritanopia (blue-blind)
#8D264A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #87187c;
/* rgb */ color: rgb(135, 24, 124);
/* oklch */ color: oklch(44.1% 0.179 332.8);
Tailwind
colors: {
  custom: {
    50: '#ae64a2',
    500: '#87187c',
    950: '#000000',
  },
}
SCSS
$custom: #87187c;
$custom-light: #ae64a2;
$custom-dark: #000000;
JSON
{
  "hex": "#87187c",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 305.946,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44104,
    "c": 0.17902,
    "h": 332.8
  },
  "luminance": 0.07259
}

Semantic roles & 50–950 ramp

primary
#87187C
secondary
#40BB4C
accent
#ED4D3B
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87187C

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

Preview Lab → · Contrast checker → · Palette generator →

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