#87178C#87178C

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

Color values

HEX#87178C
RGBrgb(135, 23, 140)
HSLhsl(297, 72%, 32%)
HSVhsv(297, 84%, 55%)
CMYKcmyk(3.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(33.26, 58.06, -38.33)
CIE-LCHlch(33.26, 69.57, 326.56°)
OKLaboklab(45.03% 0.1595 -0.1068)
OKLCHoklch(45.03% 0.192 326.2)
XYZxyz(15.0314, 7.6582, 25.4923)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87178C #1C8C17
analogous
#4D178C #87178C #8C1757
triadic
#87178C #8C8717 #178C87
tetradic
#87178C #8C4D17 #1C8C17 #17578C
square
#87178C #8C4D17 #1C8C17 #17578C
split-complementary
#87178C #578C17 #178C4D
monochromatic
#220623 #540E57 #87178C #BA20C1 #D83EDF

Accessibility & contrast

On white

8.30
#87178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#87178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87178C
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87178C#FFFFFF#000000##FFFFFF
##87178C1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#365389
Tritanopia (blue-blind)
#8B2E53
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #87178c;
/* rgb */ color: rgb(135, 23, 140);
/* oklch */ color: oklch(45.0% 0.192 326.2);
Tailwind
colors: {
  custom: {
    50: '#ae65ae',
    500: '#87178c',
    950: '#000000',
  },
}
SCSS
$custom: #87178c;
$custom-light: #ae65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#87178c",
  "rgb": {
    "r": 135,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 297.436,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45028,
    "c": 0.1919,
    "h": 326.2
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#87178C
secondary
#45BF3F
accent
#EF3941
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87178C

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

Preview Lab → · Contrast checker → · Palette generator →

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