#842E87#842E87

#842E87 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.2% C 0.161 H 326.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#842E87
RGBrgb(132, 46, 135)
HSLhsl(298, 49%, 35%)
HSVhsv(298, 66%, 53%)
CMYKcmyk(2.2%, 65.9%, 0%, 47.1%)
CIE-LABlab(35.22, 48.61, -32.16)
CIE-LCHlch(35.22, 58.28, 326.51°)
OKLaboklab(46.24% 0.1341 -0.089)
OKLCHoklch(46.24% 0.161 326.4)
XYZxyz(14.8656, 8.6097, 23.7958)
Luminance0.0861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E87 #31872E
analogous
#582E87 #842E87 #872E5D
triadic
#842E87 #87842E #2E8784
tetradic
#842E87 #87582E #31872E #2E5D87
square
#842E87 #87582E #31872E #2E5D87
split-complementary
#842E87 #5D872E #2E8758
monochromatic
#2B0F2C #571E59 #842E87 #B13EB5 #C765CA

Accessibility & contrast

On white

7.72
#842E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#842E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E87
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E87#FFFFFF#000000##FFFFFF
##842E871.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204C8A
Deuteranopia (green-blind)
#415785
Tritanopia (blue-blind)
#883B56
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842e87;
/* rgb */ color: rgb(132, 46, 135);
/* oklch */ color: oklch(46.2% 0.161 326.4);
Tailwind
colors: {
  custom: {
    50: '#ab6eaa',
    500: '#842e87',
    950: '#000000',
  },
}
SCSS
$custom: #842e87;
$custom-light: #ab6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#842e87",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 297.978,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46236,
    "c": 0.16094,
    "h": 326.4
  },
  "luminance": 0.08609
}

Semantic roles & 50–950 ramp

primary
#842E87
secondary
#62B160
accent
#D94F54
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842E87

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

Preview Lab → · Contrast checker → · Palette generator →

#842E87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva