#872797#872797

#872797 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.185 H 321.5°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#872797
RGBrgb(135, 39, 151)
HSLhsl(291, 59%, 37%)
HSVhsv(291, 74%, 59%)
CMYKcmyk(10.6%, 74.2%, 0%, 40.8%)
CIE-LABlab(35.67, 55.10, -41.23)
CIE-LCHlch(35.67, 68.81, 323.19°)
OKLaboklab(46.96% 0.1451 -0.1153)
OKLCHoklch(46.96% 0.185 321.5)
XYZxyz(16.3025, 8.8372, 30.1192)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872797 #379727
analogous
#4F2797 #872797 #97276F
triadic
#872797 #978727 #279787
tetradic
#872797 #974F27 #379727 #276F97
square
#872797 #974F27 #379727 #276F97
split-complementary
#872797 #6F9727 #27974F
monochromatic
#300E36 #5C1A66 #872797 #B234C8 #C662D6

Accessibility & contrast

On white

7.59
#872797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#872797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872797
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872797#FFFFFF#000000##FFFFFF
##8727971.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #872797;
/* rgb */ color: rgb(135, 39, 151);
/* oklch */ color: oklch(47.0% 0.185 321.5);
Tailwind
colors: {
  custom: {
    50: '#ad6bb6',
    500: '#872797',
    950: '#000000',
  },
}
SCSS
$custom: #872797;
$custom-light: #ad6bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#872797",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 291.429,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4696,
    "c": 0.18536,
    "h": 321.5
  },
  "luminance": 0.08836
}

Semantic roles & 50–950 ramp

primary
#872797
secondary
#6BBC5E
accent
#E2465C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872797

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

Preview Lab → · Contrast checker → · Palette generator →

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