#87188F#87188F

#87188F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.193 H 325.0°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#87188F
RGBrgb(135, 24, 143)
HSLhsl(296, 71%, 33%)
HSVhsv(296, 83%, 56%)
CMYKcmyk(5.6%, 83.2%, 0%, 43.9%)
CIE-LABlab(33.54, 58.32, -39.74)
CIE-LCHlch(33.54, 70.57, 325.73°)
OKLaboklab(45.29% 0.1585 -0.1109)
OKLCHoklch(45.29% 0.193 325)
XYZxyz(15.2759, 7.7884, 26.6800)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87188F #208F18
analogous
#4B188F #87188F #8F185C
triadic
#87188F #8F8718 #188F87
tetradic
#87188F #8F4B18 #208F18 #185C8F
square
#87188F #8F4B18 #208F18 #185C8F
split-complementary
#87188F #5C8F18 #188F4B
monochromatic
#240626 #560F5B #87188F #B821C3 #D542DF

Accessibility & contrast

On white

8.21
#87188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#87188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87188F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87188F#FFFFFF#000000##FFFFFF
##87188F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#34538C
Tritanopia (blue-blind)
#8A3055
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #87188f;
/* rgb */ color: rgb(135, 24, 143);
/* oklch */ color: oklch(45.3% 0.193 325.0);
Tailwind
colors: {
  custom: {
    50: '#ae65b0',
    500: '#87188f',
    950: '#000000',
  },
}
SCSS
$custom: #87188f;
$custom-light: #ae65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#87188f",
  "rgb": {
    "r": 135,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 295.966,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45285,
    "c": 0.19342,
    "h": 325
  },
  "luminance": 0.07787
}

Semantic roles & 50–950 ramp

primary
#87188F
secondary
#4BC043
accent
#EE3A46
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #87188F

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

Preview Lab → · Contrast checker → · Palette generator →

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