#842E80#842E80

#842E80 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.155 H 329.7°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#842E80
RGBrgb(132, 46, 128)
HSLhsl(303, 48%, 35%)
HSVhsv(303, 65%, 52%)
CMYKcmyk(0%, 65.2%, 3%, 48.2%)
CIE-LABlab(34.84, 47.34, -28.42)
CIE-LCHlch(34.84, 55.21, 329.02°)
OKLaboklab(45.84% 0.1336 -0.0782)
OKLCHoklch(45.84% 0.155 329.7)
XYZxyz(14.3889, 8.4190, 21.2851)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E80 #2E8432
analogous
#5D2E84 #842E80 #842E55
triadic
#842E80 #80842E #2E8084
tetradic
#842E80 #845D2E #2E8432 #2E5584
square
#842E80 #845D2E #2E8432 #2E5584
split-complementary
#842E80 #55842E #2E845D
monochromatic
#290E28 #571E54 #842E80 #B13EAC #C964C4

Accessibility & contrast

On white

7.83
#842E80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#842E80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E80
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E80#FFFFFF#000000##FFFFFF
##842E801.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264A82
Deuteranopia (green-blind)
#45567E
Tritanopia (blue-blind)
#893853
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842e80;
/* rgb */ color: rgb(132, 46, 128);
/* oklch */ color: oklch(45.8% 0.155 329.7);
Tailwind
colors: {
  custom: {
    50: '#aa6da5',
    500: '#842e80',
    950: '#000000',
  },
}
SCSS
$custom: #842e80;
$custom-light: #aa6da5;
$custom-dark: #000000;
JSON
{
  "hex": "#842e80",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 128
  },
  "hsl": {
    "h": 302.791,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45837,
    "c": 0.15481,
    "h": 329.7
  },
  "luminance": 0.08418
}

Semantic roles & 50–950 ramp

primary
#842E80
secondary
#5EB062
accent
#D85650
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E80

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

Preview Lab → · Contrast checker → · Palette generator →

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