#87178F#87178F

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

Color values

HEX#87178F
RGBrgb(135, 23, 143)
HSLhsl(296, 72%, 33%)
HSVhsv(296, 84%, 56%)
CMYKcmyk(5.6%, 83.9%, 0%, 43.9%)
CIE-LABlab(33.45, 58.57, -39.88)
CIE-LCHlch(33.45, 70.86, 325.75°)
OKLaboklab(45.22% 0.1592 -0.1113)
OKLCHoklch(45.22% 0.194 325)
XYZxyz(15.2556, 7.7479, 26.6732)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87178F #1F8F17
analogous
#4B178F #87178F #8F175B
triadic
#87178F #8F8717 #178F87
tetradic
#87178F #8F4B17 #1F8F17 #175B8F
square
#87178F #8F4B17 #1F8F17 #175B8F
split-complementary
#87178F #5B8F17 #178F4B
monochromatic
#230626 #550F5A #87178F #B91FC4 #D640E0

Accessibility & contrast

On white

8.24
#87178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#87178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87178F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87178F#FFFFFF#000000##FFFFFF
##87178F1.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)
#004692
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#8A3055
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87178f;
/* rgb */ color: rgb(135, 23, 143);
/* oklch */ color: oklch(45.2% 0.194 325.0);
Tailwind
colors: {
  custom: {
    50: '#ae65b0',
    500: '#87178f',
    950: '#000000',
  },
}
SCSS
$custom: #87178f;
$custom-light: #ae65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#87178f",
  "rgb": {
    "r": 135,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 296,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45224,
    "c": 0.19421,
    "h": 325
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#87178F
secondary
#4AC141
accent
#EF3945
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #87178F

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

Preview Lab → · Contrast checker → · Palette generator →

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