#87287B#87287B

#87287B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.161 H 333.4°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#87287B
RGBrgb(135, 40, 123)
HSLhsl(308, 54%, 34%)
HSVhsv(308, 70%, 53%)
CMYKcmyk(0%, 70.4%, 8.9%, 47.1%)
CIE-LABlab(34.19, 49.76, -26.28)
CIE-LCHlch(34.19, 56.27, 332.15°)
OKLaboklab(45.38% 0.1437 -0.072)
OKLCHoklch(45.38% 0.161 333.4)
XYZxyz(14.3257, 8.0997, 19.5439)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87287B #288734
analogous
#642887 #87287B #87284C
triadic
#87287B #7B8728 #287B87
tetradic
#87287B #876428 #288734 #284C87
square
#87287B #876428 #288734 #284C87
split-complementary
#87287B #4C8728 #288764
monochromatic
#290C25 #581A50 #87287B #B636A6 #CE5BC0

Accessibility & contrast

On white

8.02
#87287B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#87287B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87287B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87287B#FFFFFF#000000##FFFFFF
##87287B1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25487D
Deuteranopia (green-blind)
#465579
Tritanopia (blue-blind)
#8D304E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #87287b;
/* rgb */ color: rgb(135, 40, 123);
/* oklch */ color: oklch(45.4% 0.161 333.4);
Tailwind
colors: {
  custom: {
    50: '#ad6ba1',
    500: '#87287b',
    950: '#000000',
  },
}
SCSS
$custom: #87287b;
$custom-light: #ad6ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#87287b",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 307.579,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45378,
    "c": 0.16074,
    "h": 333.4
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#87287B
secondary
#57B463
accent
#DE5D4A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #87287B

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

Preview Lab → · Contrast checker → · Palette generator →

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