#87178D#87178D

#87178D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.193 H 325.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#87178D
RGBrgb(135, 23, 141)
HSLhsl(297, 72%, 32%)
HSVhsv(297, 84%, 55%)
CMYKcmyk(4.3%, 83.7%, 0%, 44.7%)
CIE-LABlab(33.32, 58.23, -38.85)
CIE-LCHlch(33.32, 70.00, 326.29°)
OKLaboklab(45.09% 0.1594 -0.1083)
OKLCHoklch(45.09% 0.193 325.8)
XYZxyz(15.1055, 7.6878, 25.8824)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87178D #1D8D17
analogous
#4C178D #87178D #8D1758
triadic
#87178D #8D8717 #178D87
tetradic
#87178D #8D4C17 #1D8D17 #17588D
square
#87178D #8D4C17 #1D8D17 #17588D
split-complementary
#87178D #588D17 #178D4C
monochromatic
#220624 #550E58 #87178D #B920C2 #D73FE0

Accessibility & contrast

On white

8.28
#87178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#87178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87178D
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87178D#FFFFFF#000000##FFFFFF
##87178D1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#35538A
Tritanopia (blue-blind)
#8A2F54
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #87178d;
/* rgb */ color: rgb(135, 23, 141);
/* oklch */ color: oklch(45.1% 0.193 325.8);
Tailwind
colors: {
  custom: {
    50: '#ae65af',
    500: '#87178d',
    950: '#000000',
  },
}
SCSS
$custom: #87178d;
$custom-light: #ae65af;
$custom-dark: #000000;
JSON
{
  "hex": "#87178d",
  "rgb": {
    "r": 135,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 296.949,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45093,
    "c": 0.19267,
    "h": 325.8
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

primary
#87178D
secondary
#46C040
accent
#EF3942
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87178D

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

Preview Lab → · Contrast checker → · Palette generator →

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