#87288B#87288B

#87288B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.174 H 326.2°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#87288B
RGBrgb(135, 40, 139)
HSLhsl(298, 55%, 35%)
HSVhsv(298, 71%, 55%)
CMYKcmyk(2.9%, 71.2%, 0%, 45.5%)
CIE-LABlab(35.07, 52.51, -34.83)
CIE-LCHlch(35.07, 63.02, 326.44°)
OKLaboklab(46.3% 0.1445 -0.0967)
OKLCHoklch(46.3% 0.174 326.2)
XYZxyz(15.4104, 8.5336, 25.2566)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87288B #2C8B28
analogous
#56288B #87288B #8B285D
triadic
#87288B #8B8728 #288B87
tetradic
#87288B #8B5628 #2C8B28 #285D8B
square
#87288B #8B5628 #2C8B28 #285D8B
split-complementary
#87288B #5D8B28 #288B56
monochromatic
#2B0D2C #591A5B #87288B #B536BB #CC5DD0

Accessibility & contrast

On white

7.76
#87288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#87288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87288B
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87288B#FFFFFF#000000##FFFFFF
##87288B1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#3E5789
Tritanopia (blue-blind)
#8B3757
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #87288b;
/* rgb */ color: rgb(135, 40, 139);
/* oklch */ color: oklch(46.3% 0.174 326.2);
Tailwind
colors: {
  custom: {
    50: '#ad6bad',
    500: '#87288b',
    950: '#000000',
  },
}
SCSS
$custom: #87288b;
$custom-light: #ad6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#87288b",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 297.576,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.46298,
    "c": 0.17386,
    "h": 326.2
  },
  "luminance": 0.08533
}

Semantic roles & 50–950 ramp

primary
#87288B
secondary
#5DB659
accent
#DF494F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #87288B

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

Preview Lab → · Contrast checker → · Palette generator →

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