#842E7C#842E7C

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

Color values

HEX#842E7C
RGBrgb(132, 46, 124)
HSLhsl(306, 48%, 35%)
HSVhsv(306, 65%, 52%)
CMYKcmyk(0%, 65.2%, 6.1%, 48.2%)
CIE-LABlab(34.63, 46.64, -26.25)
CIE-LCHlch(34.63, 53.52, 330.62°)
OKLaboklab(45.62% 0.1332 -0.072)
OKLCHoklch(45.62% 0.151 331.6)
XYZxyz(14.1308, 8.3158, 19.9257)
Luminance0.0832 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E7C #2E8436
analogous
#612E84 #842E7C #842E51
triadic
#842E7C #7C842E #2E7C84
tetradic
#842E7C #84612E #2E8436 #2E5184
square
#842E7C #84612E #2E8436 #2E5184
split-complementary
#842E7C #51842E #2E8461
monochromatic
#290E27 #571E51 #842E7C #B13EA7 #C964BF

Accessibility & contrast

On white

7.89
#842E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842E7C
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E7C#FFFFFF#000000##FFFFFF
##842E7C1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7E
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#893650
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842e7c;
/* rgb */ color: rgb(132, 46, 124);
/* oklch */ color: oklch(45.6% 0.151 331.6);
Tailwind
colors: {
  custom: {
    50: '#aa6da2',
    500: '#842e7c',
    950: '#000000',
  },
}
SCSS
$custom: #842e7c;
$custom-light: #aa6da2;
$custom-dark: #000000;
JSON
{
  "hex": "#842e7c",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 124
  },
  "hsl": {
    "h": 305.581,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45617,
    "c": 0.15142,
    "h": 331.6
  },
  "luminance": 0.08315
}

Semantic roles & 50–950 ramp

primary
#842E7C
secondary
#5EB066
accent
#D85D50
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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