#872878#872878

#872878 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.158 H 334.9°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#872878
RGBrgb(135, 40, 120)
HSLhsl(309, 54%, 34%)
HSVhsv(309, 70%, 53%)
CMYKcmyk(0%, 70.4%, 11.1%, 47.1%)
CIE-LABlab(34.04, 49.27, -24.64)
CIE-LCHlch(34.04, 55.09, 333.43°)
OKLaboklab(45.22% 0.1434 -0.0673)
OKLCHoklch(45.22% 0.158 334.9)
XYZxyz(14.1408, 8.0257, 18.5700)
Luminance0.0803 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872878 #288737
analogous
#672887 #872878 #872849
triadic
#872878 #788728 #287887
tetradic
#872878 #876728 #288737 #284987
square
#872878 #876728 #288737 #284987
split-complementary
#872878 #498728 #288767
monochromatic
#290C24 #581A4E #872878 #B636A2 #CE5BBC

Accessibility & contrast

On white

8.06
#872878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#872878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872878
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872878#FFFFFF#000000##FFFFFF
##8728781.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#485576
Tritanopia (blue-blind)
#8E2F4C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #872878;
/* rgb */ color: rgb(135, 40, 120);
/* oklch */ color: oklch(45.2% 0.158 334.9);
Tailwind
colors: {
  custom: {
    50: '#ad6b9f',
    500: '#872878',
    950: '#000000',
  },
}
SCSS
$custom: #872878;
$custom-light: #ad6b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#872878",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 309.474,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.45217,
    "c": 0.1584,
    "h": 334.9
  },
  "luminance": 0.08025
}

Semantic roles & 50–950 ramp

primary
#872878
secondary
#57B466
accent
#DE614A
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #872878

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

Preview Lab → · Contrast checker → · Palette generator →

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