#87288F#87288F

#87288F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.177 H 324.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#87288F
RGBrgb(135, 40, 143)
HSLhsl(295, 56%, 36%)
HSVhsv(295, 72%, 56%)
CMYKcmyk(5.6%, 72%, 0%, 43.9%)
CIE-LABlab(35.31, 53.24, -36.92)
CIE-LCHlch(35.31, 64.79, 325.26°)
OKLaboklab(46.54% 0.1445 -0.1027)
OKLCHoklch(46.54% 0.177 324.6)
XYZxyz(15.7080, 8.6526, 26.8240)
Luminance0.0865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#87288F #308F28
analogous
#53288F #87288F #8F2863
triadic
#87288F #8F8728 #288F87
tetradic
#87288F #8F5328 #308F28 #28638F
square
#87288F #8F5328 #308F28 #28638F
split-complementary
#87288F #638F28 #288F53
monochromatic
#2D0D2F #5A1B5F #87288F #B435BF #C95FD2

Accessibility & contrast

On white

7.69
#87288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#87288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #87288F
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##87288F#FFFFFF#000000##FFFFFF
##87288F1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4C92
Deuteranopia (green-blind)
#3C578C
Tritanopia (blue-blind)
#8A3959
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #87288f;
/* rgb */ color: rgb(135, 40, 143);
/* oklch */ color: oklch(46.5% 0.177 324.6);
Tailwind
colors: {
  custom: {
    50: '#ad6bb0',
    500: '#87288f',
    950: '#000000',
  },
}
SCSS
$custom: #87288f;
$custom-light: #ad6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#87288f",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 295.34,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46543,
    "c": 0.17727,
    "h": 324.6
  },
  "luminance": 0.08652
}

Semantic roles & 50–950 ramp

primary
#87288F
secondary
#62B85B
accent
#E04854
background
#FBF6FA
surface
#F6ECF5
border
#D0C7CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #87288F

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

Preview Lab → · Contrast checker → · Palette generator →

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