#872687#872687

#872687 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.173 H 327.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#872687
RGBrgb(135, 38, 135)
HSLhsl(300, 56%, 34%)
HSVhsv(300, 72%, 53%)
CMYKcmyk(0%, 71.9%, 0%, 47.1%)
CIE-LABlab(34.57, 52.55, -33.15)
CIE-LCHlch(34.57, 62.14, 327.76°)
OKLaboklab(45.87% 0.1466 -0.0918)
OKLCHoklch(45.87% 0.173 327.9)
XYZxyz(15.0578, 8.2875, 23.7235)
Luminance0.0829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872687 #268726
analogous
#572687 #872687 #872657
triadic
#872687 #878726 #268787
tetradic
#872687 #875726 #268726 #265787
square
#872687 #875726 #268726 #265787
split-complementary
#872687 #578726 #268757
monochromatic
#270B27 #571957 #872687 #B733B7 #D058D0

Accessibility & contrast

On white

7.90
#872687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#872687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872687
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872687#FFFFFF#000000##FFFFFF
##8726871.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15498A
Deuteranopia (green-blind)
#3F5685
Tritanopia (blue-blind)
#8B3454
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #872687;
/* rgb */ color: rgb(135, 38, 135);
/* oklch */ color: oklch(45.9% 0.173 327.9);
Tailwind
colors: {
  custom: {
    50: '#ad6aaa',
    500: '#872687',
    950: '#000000',
  },
}
SCSS
$custom: #872687;
$custom-light: #ad6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#872687",
  "rgb": {
    "r": 135,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 300,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.45867,
    "c": 0.17294,
    "h": 327.9
  },
  "luminance": 0.08286
}

Semantic roles & 50–950 ramp

primary
#872687
secondary
#54B554
accent
#DF4848
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872687

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

Preview Lab → · Contrast checker → · Palette generator →

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