#872587#872587

#872587 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.174 H 328.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#872587
RGBrgb(135, 37, 135)
HSLhsl(300, 57%, 34%)
HSVhsv(300, 73%, 53%)
CMYKcmyk(0%, 72.6%, 0%, 47.1%)
CIE-LABlab(34.45, 52.92, -33.35)
CIE-LCHlch(34.45, 62.55, 327.78°)
OKLaboklab(45.78% 0.1476 -0.0924)
OKLCHoklch(45.78% 0.174 328)
XYZxyz(15.0262, 8.2244, 23.7130)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872587 #258725
analogous
#562587 #872587 #872556
triadic
#872587 #878725 #258787
tetradic
#872587 #875625 #258725 #255687
square
#872587 #875625 #258725 #255687
split-complementary
#872587 #568725 #258756
monochromatic
#270B27 #571857 #872587 #B732B7 #D156D1

Accessibility & contrast

On white

7.94
#872587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#872587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872587
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872587#FFFFFF#000000##FFFFFF
##8725871.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#3F5585
Tritanopia (blue-blind)
#8B3453
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #872587;
/* rgb */ color: rgb(135, 37, 135);
/* oklch */ color: oklch(45.8% 0.174 328.0);
Tailwind
colors: {
  custom: {
    50: '#ad6aaa',
    500: '#872587',
    950: '#000000',
  },
}
SCSS
$custom: #872587;
$custom-light: #ad6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#872587",
  "rgb": {
    "r": 135,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45775,
    "c": 0.17412,
    "h": 328
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#872587
secondary
#53B553
accent
#E04848
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872587

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

Preview Lab → · Contrast checker → · Palette generator →

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