#842787#842787

#842787 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.170 H 326.6°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#842787
RGBrgb(132, 39, 135)
HSLhsl(298, 55%, 34%)
HSVhsv(298, 71%, 53%)
CMYKcmyk(2.2%, 71.1%, 0%, 47.1%)
CIE-LABlab(34.20, 51.47, -33.77)
CIE-LCHlch(34.20, 61.56, 326.73°)
OKLaboklab(45.5% 0.1421 -0.0937)
OKLCHoklch(45.5% 0.17 326.6)
XYZxyz(14.6142, 8.1068, 23.7120)
Luminance0.0811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842787 #2A8727
analogous
#542787 #842787 #87275A
triadic
#842787 #878427 #278784
tetradic
#842787 #875427 #2A8727 #275A87
square
#842787 #875427 #2A8727 #275A87
split-complementary
#842787 #5A8727 #278754
monochromatic
#270C28 #561958 #842787 #B235B6 #CB59CF

Accessibility & contrast

On white

8.01
#842787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#842787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842787
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842787#FFFFFF#000000##FFFFFF
##8427871.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#3D5585
Tritanopia (blue-blind)
#883654
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842787;
/* rgb */ color: rgb(132, 39, 135);
/* oklch */ color: oklch(45.5% 0.170 326.6);
Tailwind
colors: {
  custom: {
    50: '#ab6aaa',
    500: '#842787',
    950: '#000000',
  },
}
SCSS
$custom: #842787;
$custom-light: #ab6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#842787",
  "rgb": {
    "r": 132,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 298.125,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45503,
    "c": 0.17016,
    "h": 326.6
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

primary
#842787
secondary
#59B456
accent
#DF494E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842787

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

Preview Lab → · Contrast checker → · Palette generator →

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