#87197F#87197F

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

Color values

HEX#87197F
RGBrgb(135, 25, 127)
HSLhsl(304, 69%, 31%)
HSVhsv(304, 81%, 53%)
CMYKcmyk(0%, 81.5%, 5.9%, 47.1%)
CIE-LABlab(32.66, 55.40, -31.21)
CIE-LCHlch(32.66, 63.58, 330.61°)
OKLaboklab(44.35% 0.1585 -0.0861)
OKLCHoklch(44.35% 0.18 331.5)
XYZxyz(14.1701, 7.3797, 20.7527)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87197F #198721
analogous
#581987 #87197F #871948
triadic
#87197F #7F8719 #197F87
tetradic
#87197F #875819 #198721 #194887
square
#87197F #875819 #198721 #194887
split-complementary
#87197F #488719 #198758
monochromatic
#20061E #530F4E #87197F #BB23B0 #DB3FD0

Accessibility & contrast

On white

8.48
#87197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#87197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87197F
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87197F#FFFFFF#000000##FFFFFF
##87197F1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87197f;
/* rgb */ color: rgb(135, 25, 127);
/* oklch */ color: oklch(44.3% 0.180 331.5);
Tailwind
colors: {
  custom: {
    50: '#ae65a4',
    500: '#87197f',
    950: '#000000',
  },
}
SCSS
$custom: #87197f;
$custom-light: #ae65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#87197f",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 304.364,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.44346,
    "c": 0.18035,
    "h": 331.5
  },
  "luminance": 0.07378
}

Semantic roles & 50–950 ramp

primary
#87197F
secondary
#41BA4A
accent
#EC493C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #87197F

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

Preview Lab → · Contrast checker → · Palette generator →

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