#87198C#87198C

#87198C is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.190 H 326.2°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#87198C
RGBrgb(135, 25, 140)
HSLhsl(297, 70%, 32%)
HSVhsv(297, 82%, 55%)
CMYKcmyk(3.6%, 82.1%, 0%, 45.1%)
CIE-LABlab(33.44, 57.55, -38.05)
CIE-LCHlch(33.44, 68.99, 326.53°)
OKLaboklab(45.15% 0.158 -0.106)
OKLCHoklch(45.15% 0.19 326.2)
XYZxyz(15.0726, 7.7407, 25.5061)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87198C #1E8C19
analogous
#4D198C #87198C #8C1958
triadic
#87198C #8C8719 #198C87
tetradic
#87198C #8C4D19 #1E8C19 #19588C
square
#87198C #8C4D19 #1E8C19 #19588C
split-complementary
#87198C #588C19 #198C4D
monochromatic
#230624 #551058 #87198C #B922C0 #D742DD

Accessibility & contrast

On white

8.24
#87198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #87198C
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87198C#FFFFFF#000000##FFFFFF
##87198C1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#375389
Tritanopia (blue-blind)
#8B2F53
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87198c;
/* rgb */ color: rgb(135, 25, 140);
/* oklch */ color: oklch(45.2% 0.190 326.2);
Tailwind
colors: {
  custom: {
    50: '#ae65ae',
    500: '#87198c',
    950: '#000000',
  },
}
SCSS
$custom: #87198c;
$custom-light: #ae65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#87198c",
  "rgb": {
    "r": 135,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 297.391,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45152,
    "c": 0.19026,
    "h": 326.2
  },
  "luminance": 0.0774
}

Semantic roles & 50–950 ramp

primary
#87198C
secondary
#48BE43
accent
#ED3B43
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87198C

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

Preview Lab → · Contrast checker → · Palette generator →

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