#87187E#87187E

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

Color values

HEX#87187E
RGBrgb(135, 24, 126)
HSLhsl(305, 70%, 31%)
HSVhsv(305, 82%, 53%)
CMYKcmyk(0%, 82.2%, 6.7%, 47.1%)
CIE-LABlab(32.51, 55.51, -30.82)
CIE-LCHlch(32.51, 63.49, 330.96°)
OKLaboklab(44.22% 0.1593 -0.0849)
OKLCHoklch(44.22% 0.18 331.9)
XYZxyz(14.0842, 7.3117, 20.4041)
Luminance0.0731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87187E #188721
analogous
#581887 #87187E #871846
triadic
#87187E #7E8718 #187E87
tetradic
#87187E #875818 #188721 #184687
square
#87187E #875818 #188721 #184687
split-complementary
#87187E #468718 #188758
monochromatic
#1F061D #530F4D #87187E #BB21AE #DC3DD0

Accessibility & contrast

On white

8.53
#87187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87187E
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87187E#FFFFFF#000000##FFFFFF
##87187E1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4381
Deuteranopia (green-blind)
#3F527B
Tritanopia (blue-blind)
#8D274B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #87187e;
/* rgb */ color: rgb(135, 24, 126);
/* oklch */ color: oklch(44.2% 0.180 331.9);
Tailwind
colors: {
  custom: {
    50: '#ae64a4',
    500: '#87187e',
    950: '#000000',
  },
}
SCSS
$custom: #87187e;
$custom-light: #ae64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87187e",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 304.865,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44221,
    "c": 0.18049,
    "h": 331.9
  },
  "luminance": 0.07311
}

Semantic roles & 50–950 ramp

primary
#87187E
secondary
#40BB4A
accent
#ED4A3B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87187E

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

Preview Lab → · Contrast checker → · Palette generator →

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