#872786#872786

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

Color values

HEX#872786
RGBrgb(135, 39, 134)
HSLhsl(301, 55%, 34%)
HSVhsv(301, 71%, 53%)
CMYKcmyk(0%, 71.1%, 0.7%, 47.1%)
CIE-LABlab(34.65, 52.01, -32.41)
CIE-LCHlch(34.65, 61.28, 328.07°)
OKLaboklab(45.9% 0.1455 -0.0896)
OKLCHoklch(45.9% 0.171 328.4)
XYZxyz(15.0201, 8.3242, 23.3653)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872786 #278728
analogous
#582787 #872786 #872756
triadic
#872786 #868727 #278687
tetradic
#872786 #875827 #278728 #275687
square
#872786 #875827 #278728 #275687
split-complementary
#872786 #568727 #278758
monochromatic
#280C28 #581957 #872786 #B635B5 #CF59CE

Accessibility & contrast

On white

7.88
#872786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #872786
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872786#FFFFFF#000000##FFFFFF
##8727861.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184989
Deuteranopia (green-blind)
#415684
Tritanopia (blue-blind)
#8B3554
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #872786;
/* rgb */ color: rgb(135, 39, 134);
/* oklch */ color: oklch(45.9% 0.171 328.4);
Tailwind
colors: {
  custom: {
    50: '#ad6ba9',
    500: '#872786',
    950: '#000000',
  },
}
SCSS
$custom: #872786;
$custom-light: #ad6ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#872786",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 300.625,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45902,
    "c": 0.1709,
    "h": 328.4
  },
  "luminance": 0.08323
}

Semantic roles & 50–950 ramp

primary
#872786
secondary
#56B457
accent
#DF4B49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872786

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

Preview Lab → · Contrast checker → · Palette generator →

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