#842E7B#842E7B

#842E7B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.151 H 332.1°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#842E7B
RGBrgb(132, 46, 123)
HSLhsl(306, 48%, 35%)
HSVhsv(306, 65%, 52%)
CMYKcmyk(0%, 65.2%, 6.8%, 48.2%)
CIE-LABlab(34.58, 46.46, -25.71)
CIE-LCHlch(34.58, 53.10, 331.05°)
OKLaboklab(45.56% 0.1331 -0.0704)
OKLCHoklch(45.56% 0.151 332.1)
XYZxyz(14.0679, 8.2906, 19.5944)
Luminance0.0829 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E7B #2E8437
analogous
#622E84 #842E7B #842E50
triadic
#842E7B #7B842E #2E7B84
tetradic
#842E7B #84622E #2E8437 #2E5084
square
#842E7B #84622E #2E8437 #2E5084
split-complementary
#842E7B #50842E #2E8462
monochromatic
#290E26 #571E51 #842E7B #B13EA5 #C964BE

Accessibility & contrast

On white

7.90
#842E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#842E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E7B
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E7B#FFFFFF#000000##FFFFFF
##842E7B1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7D
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#8A3650
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842e7b;
/* rgb */ color: rgb(132, 46, 123);
/* oklch */ color: oklch(45.6% 0.151 332.1);
Tailwind
colors: {
  custom: {
    50: '#aa6da1',
    500: '#842e7b',
    950: '#000000',
  },
}
SCSS
$custom: #842e7b;
$custom-light: #aa6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#842e7b",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 306.279,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45563,
    "c": 0.15058,
    "h": 332.1
  },
  "luminance": 0.0829
}

Semantic roles & 50–950 ramp

primary
#842E7B
secondary
#5EB067
accent
#D85E50
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #842E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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