#872897#872897

#872897 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.184 H 321.5°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#872897
RGBrgb(135, 40, 151)
HSLhsl(291, 58%, 37%)
HSVhsv(291, 74%, 59%)
CMYKcmyk(10.6%, 73.5%, 0%, 40.8%)
CIE-LABlab(35.80, 54.73, -41.02)
CIE-LCHlch(35.80, 68.40, 323.15°)
OKLaboklab(47.05% 0.1441 -0.1147)
OKLCHoklch(47.05% 0.184 321.5)
XYZxyz(16.3358, 8.9037, 30.1303)
Luminance0.0890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872897 #389728
analogous
#4F2897 #872897 #972870
triadic
#872897 #978728 #289787
tetradic
#872897 #974F28 #389728 #287097
square
#872897 #974F28 #389728 #287097
split-complementary
#872897 #709728 #28974F
monochromatic
#300E36 #5C1B67 #872897 #B235C7 #C564D6

Accessibility & contrast

On white

7.55
#872897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#872897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872897
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872897#FFFFFF#000000##FFFFFF
##8728971.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#365894
Tritanopia (blue-blind)
#883D5D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #872897;
/* rgb */ color: rgb(135, 40, 151);
/* oklch */ color: oklch(47.1% 0.184 321.5);
Tailwind
colors: {
  custom: {
    50: '#ad6cb6',
    500: '#872897',
    950: '#000000',
  },
}
SCSS
$custom: #872897;
$custom-light: #ad6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#872897",
  "rgb": {
    "r": 135,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 291.351,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47052,
    "c": 0.18421,
    "h": 321.5
  },
  "luminance": 0.08903
}

Semantic roles & 50–950 ramp

primary
#872897
secondary
#6DBC5F
accent
#E1465D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872897

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

Preview Lab → · Contrast checker → · Palette generator →

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