#842E7A#842E7A

#842E7A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.5% C 0.150 H 332.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#842E7A
RGBrgb(132, 46, 122)
HSLhsl(307, 48%, 35%)
HSVhsv(307, 65%, 52%)
CMYKcmyk(0%, 65.2%, 7.6%, 48.2%)
CIE-LABlab(34.53, 46.29, -25.16)
CIE-LCHlch(34.53, 52.69, 331.47°)
OKLaboklab(45.51% 0.133 -0.0689)
OKLCHoklch(45.51% 0.15 332.6)
XYZxyz(14.0056, 8.2657, 19.2664)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E7A #2E8438
analogous
#632E84 #842E7A #842E4F
triadic
#842E7A #7A842E #2E7A84
tetradic
#842E7A #84632E #2E8438 #2E4F84
square
#842E7A #84632E #2E8438 #2E4F84
split-complementary
#842E7A #4F842E #2E8463
monochromatic
#290E26 #571E50 #842E7A #B13EA4 #C964BD

Accessibility & contrast

On white

7.92
#842E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#842E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E7A
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E7A#FFFFFF#000000##FFFFFF
##842E7A1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497C
Deuteranopia (green-blind)
#475678
Tritanopia (blue-blind)
#8A354F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842e7a;
/* rgb */ color: rgb(132, 46, 122);
/* oklch */ color: oklch(45.5% 0.150 332.6);
Tailwind
colors: {
  custom: {
    50: '#aa6da0',
    500: '#842e7a',
    950: '#000000',
  },
}
SCSS
$custom: #842e7a;
$custom-light: #aa6da0;
$custom-dark: #000000;
JSON
{
  "hex": "#842e7a",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 306.977,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4551,
    "c": 0.14975,
    "h": 332.6
  },
  "luminance": 0.08265
}

Semantic roles & 50–950 ramp

primary
#842E7A
secondary
#5EB068
accent
#D86050
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070F
muted
#7F7A7E

Preview Lab

Preview with #842E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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