#87187F#87187F

#87187F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.181 H 331.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#87187F
RGBrgb(135, 24, 127)
HSLhsl(304, 70%, 31%)
HSVhsv(304, 82%, 53%)
CMYKcmyk(0%, 82.2%, 5.9%, 47.1%)
CIE-LABlab(32.56, 55.67, -31.35)
CIE-LCHlch(32.56, 63.89, 330.61°)
OKLaboklab(44.28% 0.1593 -0.0865)
OKLCHoklch(44.28% 0.181 331.5)
XYZxyz(14.1491, 7.3377, 20.7457)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87187F #188720
analogous
#571887 #87187F #871847
triadic
#87187F #7F8718 #187F87
tetradic
#87187F #875718 #188720 #184787
square
#87187F #875718 #188720 #184787
split-complementary
#87187F #478718 #188757
monochromatic
#1F061D #530F4E #87187F #BB21B0 #DC3DD1

Accessibility & contrast

On white

8.51
#87187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#87187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87187F
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87187F#FFFFFF#000000##FFFFFF
##87187F1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4382
Deuteranopia (green-blind)
#3E527C
Tritanopia (blue-blind)
#8D284C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #87187f;
/* rgb */ color: rgb(135, 24, 127);
/* oklch */ color: oklch(44.3% 0.181 331.5);
Tailwind
colors: {
  custom: {
    50: '#ae64a4',
    500: '#87187f',
    950: '#000000',
  },
}
SCSS
$custom: #87187f;
$custom-light: #ae64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87187f",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 304.324,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.44281,
    "c": 0.18122,
    "h": 331.5
  },
  "luminance": 0.07336
}

Semantic roles & 50–950 ramp

primary
#87187F
secondary
#40BB49
accent
#ED483B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87187F

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

Preview Lab → · Contrast checker → · Palette generator →

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