#87198B#87198B

#87198B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.189 H 326.5°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#87198B
RGBrgb(135, 25, 139)
HSLhsl(298, 70%, 32%)
HSVhsv(298, 82%, 55%)
CMYKcmyk(2.9%, 82%, 0%, 45.5%)
CIE-LABlab(33.37, 57.38, -37.53)
CIE-LCHlch(33.37, 68.56, 326.81°)
OKLaboklab(45.09% 0.1581 -0.1044)
OKLCHoklch(45.09% 0.189 326.5)
XYZxyz(14.9992, 7.7113, 25.1195)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87198B #1D8B19
analogous
#4E198B #87198B #8B1956
triadic
#87198B #8B8719 #198B87
tetradic
#87198B #8B4E19 #1D8B19 #19568B
square
#87198B #8B4E19 #1D8B19 #19568B
split-complementary
#87198B #568B19 #198B4E
monochromatic
#220623 #551057 #87198B #B922BF #D741DD

Accessibility & contrast

On white

8.26
#87198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#87198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87198B
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87198B#FFFFFF#000000##FFFFFF
##87198B1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#375388
Tritanopia (blue-blind)
#8B2F53
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #87198b;
/* rgb */ color: rgb(135, 25, 139);
/* oklch */ color: oklch(45.1% 0.189 326.5);
Tailwind
colors: {
  custom: {
    50: '#ae65ad',
    500: '#87198b',
    950: '#000000',
  },
}
SCSS
$custom: #87198b;
$custom-light: #ae65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#87198b",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 297.895,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45088,
    "c": 0.18948,
    "h": 326.5
  },
  "luminance": 0.0771
}

Semantic roles & 50–950 ramp

primary
#87198B
secondary
#46BE42
accent
#EC3B42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87198B

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

Preview Lab → · Contrast checker → · Palette generator →

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