#842E81#842E81

#842E81 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.156 H 329.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#842E81
RGBrgb(132, 46, 129)
HSLhsl(302, 48%, 35%)
HSVhsv(302, 65%, 52%)
CMYKcmyk(0%, 65.2%, 2.3%, 48.2%)
CIE-LABlab(34.89, 47.52, -28.96)
CIE-LCHlch(34.89, 55.65, 328.64°)
OKLaboklab(45.89% 0.1337 -0.0798)
OKLCHoklch(45.89% 0.156 329.2)
XYZxyz(14.4550, 8.4455, 21.6334)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E81 #2E8431
analogous
#5C2E84 #842E81 #842E56
triadic
#842E81 #81842E #2E8184
tetradic
#842E81 #845C2E #2E8431 #2E5684
square
#842E81 #845C2E #2E8431 #2E5684
split-complementary
#842E81 #56842E #2E845C
monochromatic
#290E28 #571E55 #842E81 #B13EAD #C964C5

Accessibility & contrast

On white

7.81
#842E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#842E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E81
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E81#FFFFFF#000000##FFFFFF
##842E811.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254B83
Deuteranopia (green-blind)
#44567F
Tritanopia (blue-blind)
#893853
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842e81;
/* rgb */ color: rgb(132, 46, 129);
/* oklch */ color: oklch(45.9% 0.156 329.2);
Tailwind
colors: {
  custom: {
    50: '#aa6da6',
    500: '#842e81',
    950: '#000000',
  },
}
SCSS
$custom: #842e81;
$custom-light: #aa6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#842e81",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 302.093,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45892,
    "c": 0.15569,
    "h": 329.2
  },
  "luminance": 0.08445
}

Semantic roles & 50–950 ramp

primary
#842E81
secondary
#5EB061
accent
#D85550
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E81

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

Preview Lab → · Contrast checker → · Palette generator →

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