#87188B#87188B

#87188B is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.190 H 326.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#87188B
RGBrgb(135, 24, 139)
HSLhsl(298, 71%, 32%)
HSVhsv(298, 83%, 55%)
CMYKcmyk(2.9%, 82.7%, 0%, 45.5%)
CIE-LABlab(33.28, 57.64, -37.68)
CIE-LCHlch(33.28, 68.86, 326.83°)
OKLaboklab(45.02% 0.1588 -0.1049)
OKLCHoklch(45.02% 0.19 326.6)
XYZxyz(14.9782, 7.6693, 25.1125)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87188B #1C8B18
analogous
#4E188B #87188B #8B1856
triadic
#87188B #8B8718 #188B87
tetradic
#87188B #8B4E18 #1C8B18 #18568B
square
#87188B #8B4E18 #1C8B18 #18568B
split-complementary
#87188B #568B18 #188B4E
monochromatic
#220623 #540F57 #87188B #BA21BF #D83FDE

Accessibility & contrast

On white

8.29
#87188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#87188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87188B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87188B#FFFFFF#000000##FFFFFF
##87188B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #87188b;
/* rgb */ color: rgb(135, 24, 139);
/* oklch */ color: oklch(45.0% 0.190 326.6);
Tailwind
colors: {
  custom: {
    50: '#ae65ad',
    500: '#87188b',
    950: '#000000',
  },
}
SCSS
$custom: #87188b;
$custom-light: #ae65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#87188b",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 297.913,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45024,
    "c": 0.19031,
    "h": 326.6
  },
  "luminance": 0.07668
}

Semantic roles & 50–950 ramp

primary
#87188B
secondary
#45BE40
accent
#ED3A41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #87188B

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

Preview Lab → · Contrast checker → · Palette generator →

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