#842587#842587

#842587 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.173 H 326.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#842587
RGBrgb(132, 37, 135)
HSLhsl(298, 57%, 34%)
HSVhsv(298, 73%, 53%)
CMYKcmyk(2.2%, 72.6%, 0%, 47.1%)
CIE-LABlab(33.94, 52.22, -34.19)
CIE-LCHlch(33.94, 62.42, 326.79°)
OKLaboklab(45.31% 0.1442 -0.0949)
OKLCHoklch(45.31% 0.173 326.7)
XYZxyz(14.5502, 7.9789, 23.6907)
Luminance0.0798 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842587 #288725
analogous
#532587 #842587 #872559
triadic
#842587 #878425 #258784
tetradic
#842587 #875325 #288725 #255987
square
#842587 #875325 #288725 #255987
split-complementary
#842587 #598725 #258753
monochromatic
#260B27 #551857 #842587 #B332B7 #CD56D1

Accessibility & contrast

On white

8.09
#842587 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#842587 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842587
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842587#FFFFFF#000000##FFFFFF
##8425871.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F488A
Deuteranopia (green-blind)
#3C5485
Tritanopia (blue-blind)
#883453
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842587;
/* rgb */ color: rgb(132, 37, 135);
/* oklch */ color: oklch(45.3% 0.173 326.7);
Tailwind
colors: {
  custom: {
    50: '#ab69aa',
    500: '#842587',
    950: '#000000',
  },
}
SCSS
$custom: #842587;
$custom-light: #ab69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#842587",
  "rgb": {
    "r": 132,
    "g": 37,
    "b": 135
  },
  "hsl": {
    "h": 298.163,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45313,
    "c": 0.17259,
    "h": 326.7
  },
  "luminance": 0.07978
}

Semantic roles & 50–950 ramp

primary
#842587
secondary
#56B553
accent
#E0484C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842587

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

Preview Lab → · Contrast checker → · Palette generator →

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