#842E77#842E77

#842E77 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.147 H 334.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#842E77
RGBrgb(132, 46, 119)
HSLhsl(309, 48%, 35%)
HSVhsv(309, 65%, 52%)
CMYKcmyk(0%, 65.2%, 9.8%, 48.2%)
CIE-LABlab(34.38, 45.78, -23.51)
CIE-LCHlch(34.38, 51.47, 332.81°)
OKLaboklab(45.35% 0.1326 -0.0641)
OKLCHoklch(45.35% 0.147 334.2)
XYZxyz(13.8226, 8.1925, 18.3025)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E77 #2E843B
analogous
#662E84 #842E77 #842E4C
triadic
#842E77 #77842E #2E7784
tetradic
#842E77 #84662E #2E843B #2E4C84
square
#842E77 #84662E #2E843B #2E4C84
split-complementary
#842E77 #4C842E #2E8466
monochromatic
#290E25 #571E4E #842E77 #B13EA0 #C964BA

Accessibility & contrast

On white

7.96
#842E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#842E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E77
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E77#FFFFFF#000000##FFFFFF
##842E771.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4979
Deuteranopia (green-blind)
#495575
Tritanopia (blue-blind)
#8A344E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842e77;
/* rgb */ color: rgb(132, 46, 119);
/* oklch */ color: oklch(45.4% 0.147 334.2);
Tailwind
colors: {
  custom: {
    50: '#aa6d9e',
    500: '#842e77',
    950: '#000000',
  },
}
SCSS
$custom: #842e77;
$custom-light: #aa6d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#842e77",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 309.07,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45352,
    "c": 0.14728,
    "h": 334.2
  },
  "luminance": 0.08191
}

Semantic roles & 50–950 ramp

primary
#842E77
secondary
#5EB06B
accent
#D86450
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842E77

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

Preview Lab → · Contrast checker → · Palette generator →

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