#872795#872795

#872795 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.184 H 322.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#872795
RGBrgb(135, 39, 149)
HSLhsl(292, 59%, 37%)
HSVhsv(292, 74%, 58%)
CMYKcmyk(9.4%, 73.8%, 0%, 41.6%)
CIE-LABlab(35.54, 54.72, -40.21)
CIE-LCHlch(35.54, 67.91, 323.69°)
OKLaboklab(46.83% 0.1452 -0.1124)
OKLCHoklch(46.83% 0.184 322.3)
XYZxyz(16.1414, 8.7728, 29.2710)
Luminance0.0877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872795 #359527
analogous
#502795 #872795 #95276C
triadic
#872795 #958727 #279587
tetradic
#872795 #955027 #359527 #276C95
square
#872795 #955027 #359527 #276C95
split-complementary
#872795 #6C9527 #279550
monochromatic
#2F0E34 #5B1A64 #872795 #B334C6 #C761D6

Accessibility & contrast

On white

7.62
#872795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #872795
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872795#FFFFFF#000000##FFFFFF
##8727951.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#375792
Tritanopia (blue-blind)
#893B5C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #872795;
/* rgb */ color: rgb(135, 39, 149);
/* oklch */ color: oklch(46.8% 0.184 322.3);
Tailwind
colors: {
  custom: {
    50: '#ad6bb5',
    500: '#872795',
    950: '#000000',
  },
}
SCSS
$custom: #872795;
$custom-light: #ad6bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#872795",
  "rgb": {
    "r": 135,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 292.364,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4683,
    "c": 0.18363,
    "h": 322.3
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#872795
secondary
#69BB5D
accent
#E2465A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #872795

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

Preview Lab → · Contrast checker → · Palette generator →

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