#87197C#87197C

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

Color values

HEX#87197C
RGBrgb(135, 25, 124)
HSLhsl(306, 69%, 31%)
HSVhsv(306, 81%, 53%)
CMYKcmyk(0%, 81.5%, 8.1%, 47.1%)
CIE-LABlab(32.49, 54.92, -29.59)
CIE-LCHlch(32.49, 62.39, 331.68°)
OKLaboklab(44.17% 0.1584 -0.0814)
OKLCHoklch(44.17% 0.178 332.8)
XYZxyz(13.9775, 7.3026, 19.7383)
Luminance0.0730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87197C #198724
analogous
#5B1987 #87197C #871945
triadic
#87197C #7C8719 #197C87
tetradic
#87197C #875B19 #198724 #194587
square
#87197C #875B19 #198724 #194587
split-complementary
#87197C #458719 #19875B
monochromatic
#20061D #530F4D #87197C #BB23AB #DB3FCC

Accessibility & contrast

On white

8.54
#87197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#87197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87197C
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87197C#FFFFFF#000000##FFFFFF
##87197C1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87197c;
/* rgb */ color: rgb(135, 25, 124);
/* oklch */ color: oklch(44.2% 0.178 332.8);
Tailwind
colors: {
  custom: {
    50: '#ae65a2',
    500: '#87197c',
    950: '#000000',
  },
}
SCSS
$custom: #87197c;
$custom-light: #ae65a2;
$custom-dark: #000000;
JSON
{
  "hex": "#87197c",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 306,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4417,
    "c": 0.17812,
    "h": 332.8
  },
  "luminance": 0.07301
}

Semantic roles & 50–950 ramp

primary
#87197C
secondary
#41BA4D
accent
#EC4E3C
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87197C

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

Preview Lab → · Contrast checker → · Palette generator →

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