#872987#872987

#872987 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.169 H 327.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#872987
RGBrgb(135, 41, 135)
HSLhsl(300, 53%, 35%)
HSVhsv(300, 70%, 53%)
CMYKcmyk(0%, 69.6%, 0%, 47.1%)
CIE-LABlab(34.98, 51.41, -32.51)
CIE-LCHlch(34.98, 60.83, 327.69°)
OKLaboklab(46.16% 0.1434 -0.0899)
OKLCHoklch(46.16% 0.169 327.9)
XYZxyz(15.1576, 8.4871, 23.7568)
Luminance0.0849 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872987 #298729
analogous
#582987 #872987 #872958
triadic
#872987 #878729 #298787
tetradic
#872987 #875829 #298729 #295887
square
#872987 #875829 #298729 #295887
split-complementary
#872987 #588729 #298758
monochromatic
#290C29 #581B58 #872987 #B637B6 #CE5DCE

Accessibility & contrast

On white

7.79
#872987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#872987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872987
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872987#FFFFFF#000000##FFFFFF
##8729871.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A8A
Deuteranopia (green-blind)
#415785
Tritanopia (blue-blind)
#8B3655
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #872987;
/* rgb */ color: rgb(135, 41, 135);
/* oklch */ color: oklch(46.2% 0.169 327.9);
Tailwind
colors: {
  custom: {
    50: '#ad6caa',
    500: '#872987',
    950: '#000000',
  },
}
SCSS
$custom: #872987;
$custom-light: #ad6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#872987",
  "rgb": {
    "r": 135,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.46157,
    "c": 0.16923,
    "h": 327.9
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#872987
secondary
#59B359
accent
#DD4B4B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872987

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

Preview Lab → · Contrast checker → · Palette generator →

#872987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva