#842E7E#842E7E

#842E7E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.7% C 0.153 H 330.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#842E7E
RGBrgb(132, 46, 126)
HSLhsl(304, 48%, 35%)
HSVhsv(304, 65%, 52%)
CMYKcmyk(0%, 65.2%, 4.5%, 48.2%)
CIE-LABlab(34.74, 46.99, -27.34)
CIE-LCHlch(34.74, 54.36, 329.81°)
OKLaboklab(45.73% 0.1334 -0.0751)
OKLCHoklch(45.73% 0.153 330.6)
XYZxyz(14.2585, 8.3669, 20.5986)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E7E #2E8434
analogous
#5F2E84 #842E7E #842E53
triadic
#842E7E #7E842E #2E7E84
tetradic
#842E7E #845F2E #2E8434 #2E5384
square
#842E7E #845F2E #2E8434 #2E5384
split-complementary
#842E7E #53842E #2E845F
monochromatic
#290E27 #571E53 #842E7E #B13EA9 #C964C2

Accessibility & contrast

On white

7.86
#842E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#842E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E7E
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E7E#FFFFFF#000000##FFFFFF
##842E7E1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#893752
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842e7e;
/* rgb */ color: rgb(132, 46, 126);
/* oklch */ color: oklch(45.7% 0.153 330.6);
Tailwind
colors: {
  custom: {
    50: '#aa6da3',
    500: '#842e7e',
    950: '#000000',
  },
}
SCSS
$custom: #842e7e;
$custom-light: #aa6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#842e7e",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 126
  },
  "hsl": {
    "h": 304.186,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45726,
    "c": 0.15311,
    "h": 330.6
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

primary
#842E7E
secondary
#5EB064
accent
#D85950
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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