#872785#872785

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

Color values

HEX#872785
RGBrgb(135, 39, 133)
HSLhsl(301, 55%, 34%)
HSVhsv(301, 71%, 53%)
CMYKcmyk(0%, 71.1%, 1.5%, 47.1%)
CIE-LABlab(34.59, 51.83, -31.88)
CIE-LCHlch(34.59, 60.85, 328.40°)
OKLaboklab(45.84% 0.1455 -0.0881)
OKLCHoklch(45.84% 0.17 328.8)
XYZxyz(14.9507, 8.2965, 22.9997)
Luminance0.0829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872785 #278729
analogous
#592787 #872785 #872755
triadic
#872785 #858727 #278587
tetradic
#872785 #875927 #278729 #275587
square
#872785 #875927 #278729 #275587
split-complementary
#872785 #558727 #278759
monochromatic
#280C27 #581956 #872785 #B635B4 #CF59CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##872785#FFFFFF#000000##FFFFFF
##8727851.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)
#1A4988
Deuteranopia (green-blind)
#415683
Tritanopia (blue-blind)
#8C3453
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #872785;
/* rgb */ color: rgb(135, 39, 133);
/* oklch */ color: oklch(45.8% 0.170 328.8);
Tailwind
colors: {
  custom: {
    50: '#ad6ba9',
    500: '#872785',
    950: '#000000',
  },
}
SCSS
$custom: #872785;
$custom-light: #ad6ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#872785",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 133
  },
  "hsl": {
    "h": 301.25,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45844,
    "c": 0.17007,
    "h": 328.8
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

primary
#872785
secondary
#56B458
accent
#DF4C49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872785

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

Preview Lab → · Contrast checker → · Palette generator →

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