#872794#872794

#872794 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.8% C 0.183 H 322.7°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#872794
RGBrgb(135, 39, 148)
HSLhsl(293, 58%, 37%)
HSVhsv(293, 74%, 58%)
CMYKcmyk(8.8%, 73.6%, 0%, 42%)
CIE-LABlab(35.48, 54.53, -39.70)
CIE-LCHlch(35.48, 67.45, 323.94°)
OKLaboklab(46.77% 0.1453 -0.1109)
OKLCHoklch(46.77% 0.183 322.7)
XYZxyz(16.0620, 8.7410, 28.8524)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872794 #349427
analogous
#512794 #872794 #94276B
triadic
#872794 #948727 #279487
tetradic
#872794 #945127 #349427 #276B94
square
#872794 #945127 #349427 #276B94
split-complementary
#872794 #6B9427 #279451
monochromatic
#2F0D33 #5B1A64 #872794 #B334C4 #C760D5

Accessibility & contrast

On white

7.64
#872794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#872794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872794
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872794#FFFFFF#000000##FFFFFF
##8727941.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#385791
Tritanopia (blue-blind)
#893B5B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #872794;
/* rgb */ color: rgb(135, 39, 148);
/* oklch */ color: oklch(46.8% 0.183 322.7);
Tailwind
colors: {
  custom: {
    50: '#ad6bb4',
    500: '#872794',
    950: '#000000',
  },
}
SCSS
$custom: #872794;
$custom-light: #ad6bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#872794",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 148
  },
  "hsl": {
    "h": 292.844,
    "s": 58.289,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46766,
    "c": 0.18275,
    "h": 322.7
  },
  "luminance": 0.0874
}

Semantic roles & 50–950 ramp

primary
#872794
secondary
#67BB5C
accent
#E24659
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872794

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

Preview Lab → · Contrast checker → · Palette generator →

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