#872791#872791

#872791 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.180 H 323.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#872791
RGBrgb(135, 39, 145)
HSLhsl(294, 58%, 36%)
HSVhsv(294, 73%, 57%)
CMYKcmyk(6.9%, 73.1%, 0%, 43.1%)
CIE-LABlab(35.30, 53.98, -38.16)
CIE-LCHlch(35.30, 66.11, 324.74°)
OKLaboklab(46.57% 0.1454 -0.1064)
OKLCHoklch(46.57% 0.18 323.8)
XYZxyz(15.8276, 8.6472, 27.6180)
Luminance0.0865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872791 #319127
analogous
#522791 #872791 #912766
triadic
#872791 #918727 #279187
tetradic
#872791 #915227 #319127 #276691
square
#872791 #915227 #319127 #276691
split-complementary
#872791 #669127 #279152
monochromatic
#2D0D31 #5A1A61 #872791 #B434C1 #C95FD4

Accessibility & contrast

On white

7.69
#872791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#872791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872791
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872791#FFFFFF#000000##FFFFFF
##8727911.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014C94
Deuteranopia (green-blind)
#3A578E
Tritanopia (blue-blind)
#893A5A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #872791;
/* rgb */ color: rgb(135, 39, 145);
/* oklch */ color: oklch(46.6% 0.180 323.8);
Tailwind
colors: {
  custom: {
    50: '#ad6bb2',
    500: '#872791',
    950: '#000000',
  },
}
SCSS
$custom: #872791;
$custom-light: #ad6bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#872791",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 294.34,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46574,
    "c": 0.18018,
    "h": 323.8
  },
  "luminance": 0.08646
}

Semantic roles & 50–950 ramp

primary
#872791
secondary
#64B95B
accent
#E14755
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872791

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

Preview Lab → · Contrast checker → · Palette generator →

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