#87287D#87287D

#87287D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.162 H 332.4°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#87287D
RGBrgb(135, 40, 125)
HSLhsl(306, 54%, 34%)
HSVhsv(306, 70%, 53%)
CMYKcmyk(0%, 70.4%, 7.4%, 47.1%)
CIE-LABlab(34.29, 50.09, -27.37)
CIE-LCHlch(34.29, 57.08, 331.34°)
OKLaboklab(45.49% 0.1439 -0.0751)
OKLCHoklch(45.49% 0.162 332.4)
XYZxyz(14.4522, 8.1503, 20.2101)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87287D #288732
analogous
#622887 #87287D #87284E
triadic
#87287D #7D8728 #287D87
tetradic
#87287D #876228 #288732 #284E87
square
#87287D #876228 #288732 #284E87
split-complementary
#87287D #4E8728 #288762
monochromatic
#290C26 #581A51 #87287D #B636A9 #CE5BC2

Accessibility & contrast

On white

7.99
#87287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#87287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87287D
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87287D#FFFFFF#000000##FFFFFF
##87287D1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23487F
Deuteranopia (green-blind)
#46557B
Tritanopia (blue-blind)
#8D314F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #87287d;
/* rgb */ color: rgb(135, 40, 125);
/* oklch */ color: oklch(45.5% 0.162 332.4);
Tailwind
colors: {
  custom: {
    50: '#ad6ba3',
    500: '#87287d',
    950: '#000000',
  },
}
SCSS
$custom: #87287d;
$custom-light: #ad6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#87287d",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 306.316,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45487,
    "c": 0.16232,
    "h": 332.4
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#87287D
secondary
#57B461
accent
#DE5A4A
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #87287D

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

Preview Lab → · Contrast checker → · Palette generator →

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