#872884#872884

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

Color values

HEX#872884
RGBrgb(135, 40, 132)
HSLhsl(302, 54%, 34%)
HSVhsv(302, 70%, 53%)
CMYKcmyk(0%, 70.4%, 2.2%, 47.1%)
CIE-LABlab(34.67, 51.28, -31.14)
CIE-LCHlch(34.67, 59.99, 328.73°)
OKLaboklab(45.88% 0.1444 -0.086)
OKLCHoklch(45.88% 0.168 329.2)
XYZxyz(14.9152, 8.3355, 22.6487)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872884 #28872B
analogous
#5B2887 #872884 #872855
triadic
#872884 #848728 #288487
tetradic
#872884 #875B28 #28872B #285587
square
#872884 #875B28 #28872B #285587
split-complementary
#872884 #558728 #28875B
monochromatic
#290C28 #581A56 #872884 #B636B2 #CE5BCB

Accessibility & contrast

On white

7.87
#872884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#872884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872884
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872884#FFFFFF#000000##FFFFFF
##8728841.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4987
Deuteranopia (green-blind)
#425682
Tritanopia (blue-blind)
#8C3453
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #872884;
/* rgb */ color: rgb(135, 40, 132);
/* oklch */ color: oklch(45.9% 0.168 329.2);
Tailwind
colors: {
  custom: {
    50: '#ad6ba8',
    500: '#872884',
    950: '#000000',
  },
}
SCSS
$custom: #872884;
$custom-light: #ad6ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#872884",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 301.895,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45883,
    "c": 0.16801,
    "h": 329.2
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

primary
#872884
secondary
#57B45A
accent
#DE4F4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #872884

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

Preview Lab → · Contrast checker → · Palette generator →

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