#872886#872886

#872886 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.170 H 328.3°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#872886
RGBrgb(135, 40, 134)
HSLhsl(301, 54%, 34%)
HSVhsv(301, 70%, 53%)
CMYKcmyk(0%, 70.4%, 0.7%, 47.1%)
CIE-LABlab(34.78, 51.63, -32.20)
CIE-LCHlch(34.78, 60.84, 328.05°)
OKLaboklab(46% 0.1444 -0.089)
OKLCHoklch(46% 0.17 328.3)
XYZxyz(15.0534, 8.3908, 23.3764)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872886 #288729
analogous
#592887 #872886 #872857
triadic
#872886 #868728 #288687
tetradic
#872886 #875928 #288729 #285787
square
#872886 #875928 #288729 #285787
split-complementary
#872886 #578728 #288759
monochromatic
#290C28 #581A57 #872886 #B636B5 #CE5BCD

Accessibility & contrast

On white

7.84
#872886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#872886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872886
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872886#FFFFFF#000000##FFFFFF
##8728861.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4A89
Deuteranopia (green-blind)
#415684
Tritanopia (blue-blind)
#8B3554
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #872886;
/* rgb */ color: rgb(135, 40, 134);
/* oklch */ color: oklch(46.0% 0.170 328.3);
Tailwind
colors: {
  custom: {
    50: '#ad6ba9',
    500: '#872886',
    950: '#000000',
  },
}
SCSS
$custom: #872886;
$custom-light: #ad6ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#872886",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 300.632,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45999,
    "c": 0.16966,
    "h": 328.3
  },
  "luminance": 0.0839
}

Semantic roles & 50–950 ramp

primary
#872886
secondary
#57B458
accent
#DE4C4A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #872886

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

Preview Lab → · Contrast checker → · Palette generator →

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