#842E86#842E86

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

Color values

HEX#842E86
RGBrgb(132, 46, 134)
HSLhsl(299, 49%, 35%)
HSVhsv(299, 66%, 53%)
CMYKcmyk(1.5%, 65.7%, 0%, 47.5%)
CIE-LABlab(35.17, 48.42, -31.63)
CIE-LCHlch(35.17, 57.84, 326.85°)
OKLaboklab(46.18% 0.134 -0.0875)
OKLCHoklch(46.18% 0.16 326.9)
XYZxyz(14.7955, 8.5817, 23.4268)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E86 #30862E
analogous
#582E86 #842E86 #862E5C
triadic
#842E86 #86842E #2E8684
tetradic
#842E86 #86582E #30862E #2E5C86
square
#842E86 #86582E #30862E #2E5C86
split-complementary
#842E86 #5C862E #2E8658
monochromatic
#2A0F2B #571E58 #842E86 #B13EB4 #C864CA

Accessibility & contrast

On white

7.73
#842E86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842E86
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E86#FFFFFF#000000##FFFFFF
##842E861.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C89
Deuteranopia (green-blind)
#425784
Tritanopia (blue-blind)
#883A56
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842e86;
/* rgb */ color: rgb(132, 46, 134);
/* oklch */ color: oklch(46.2% 0.160 326.9);
Tailwind
colors: {
  custom: {
    50: '#ab6ea9',
    500: '#842e86',
    950: '#000000',
  },
}
SCSS
$custom: #842e86;
$custom-light: #ab6ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#842e86",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 134
  },
  "hsl": {
    "h": 298.636,
    "s": 48.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46178,
    "c": 0.16006,
    "h": 326.9
  },
  "luminance": 0.08581
}

Semantic roles & 50–950 ramp

primary
#842E86
secondary
#61B15F
accent
#D84F52
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842E86

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

Preview Lab → · Contrast checker → · Palette generator →

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