#87188C#87188C

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

Color values

HEX#87188C
RGBrgb(135, 24, 140)
HSLhsl(297, 71%, 32%)
HSVhsv(297, 83%, 55%)
CMYKcmyk(3.6%, 82.9%, 0%, 45.1%)
CIE-LABlab(33.35, 57.81, -38.20)
CIE-LCHlch(33.35, 69.29, 326.55°)
OKLaboklab(45.09% 0.1588 -0.1064)
OKLCHoklch(45.09% 0.191 326.2)
XYZxyz(15.0516, 7.6987, 25.4991)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87188C #1D8C18
analogous
#4D188C #87188C #8C1857
triadic
#87188C #8C8718 #188C87
tetradic
#87188C #8C4D18 #1D8C18 #18578C
square
#87188C #8C4D18 #1D8C18 #18578C
split-complementary
#87188C #578C18 #188C4D
monochromatic
#220624 #550F58 #87188C #B921C0 #D740DE

Accessibility & contrast

On white

8.27
#87188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#87188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87188C
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87188C#FFFFFF#000000##FFFFFF
##87188C1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87188c;
/* rgb */ color: rgb(135, 24, 140);
/* oklch */ color: oklch(45.1% 0.191 326.2);
Tailwind
colors: {
  custom: {
    50: '#ae65ae',
    500: '#87188c',
    950: '#000000',
  },
}
SCSS
$custom: #87188c;
$custom-light: #ae65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#87188c",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 297.414,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45089,
    "c": 0.19109,
    "h": 326.2
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

primary
#87188C
secondary
#46BF41
accent
#ED3A42
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87188C

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

Preview Lab → · Contrast checker → · Palette generator →

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