#87198D#87198D

#87198D is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.191 H 325.8°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#87198D
RGBrgb(135, 25, 141)
HSLhsl(297, 70%, 33%)
HSVhsv(297, 82%, 55%)
CMYKcmyk(4.3%, 82.3%, 0%, 44.7%)
CIE-LABlab(33.50, 57.72, -38.57)
CIE-LCHlch(33.50, 69.42, 326.25°)
OKLaboklab(45.22% 0.1579 -0.1075)
OKLCHoklch(45.22% 0.191 325.8)
XYZxyz(15.1467, 7.7703, 25.8962)
Luminance0.0777 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87198D #1F8D19
analogous
#4D198D #87198D #8D1959
triadic
#87198D #8D8719 #198D87
tetradic
#87198D #8D4D19 #1F8D19 #19598D
square
#87198D #8D4D19 #1F8D19 #19598D
split-complementary
#87198D #598D19 #198D4D
monochromatic
#230725 #551059 #87198D #B922C1 #D643DE

Accessibility & contrast

On white

8.22
#87198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#87198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87198D
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87198D#FFFFFF#000000##FFFFFF
##87198D1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#36538A
Tritanopia (blue-blind)
#8A3054
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87198d;
/* rgb */ color: rgb(135, 25, 141);
/* oklch */ color: oklch(45.2% 0.191 325.8);
Tailwind
colors: {
  custom: {
    50: '#ae65af',
    500: '#87198d',
    950: '#000000',
  },
}
SCSS
$custom: #87198d;
$custom-light: #ae65af;
$custom-dark: #000000;
JSON
{
  "hex": "#87198d",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 296.897,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45217,
    "c": 0.19104,
    "h": 325.8
  },
  "luminance": 0.07769
}

Semantic roles & 50–950 ramp

primary
#87198D
secondary
#4ABF43
accent
#ED3B44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87198D

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

Preview Lab → · Contrast checker → · Palette generator →

#87198D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva