#842E78#842E78

#842E78 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.148 H 333.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#842E78
RGBrgb(132, 46, 120)
HSLhsl(308, 48%, 35%)
HSVhsv(308, 65%, 52%)
CMYKcmyk(0%, 65.2%, 9.1%, 48.2%)
CIE-LABlab(34.43, 45.95, -24.06)
CIE-LCHlch(34.43, 51.87, 332.36°)
OKLaboklab(45.4% 0.1327 -0.0657)
OKLCHoklch(45.4% 0.148 333.7)
XYZxyz(13.8829, 8.2167, 18.6204)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E78 #2E843A
analogous
#652E84 #842E78 #842E4D
triadic
#842E78 #78842E #2E7884
tetradic
#842E78 #84652E #2E843A #2E4D84
square
#842E78 #84652E #2E843A #2E4D84
split-complementary
#842E78 #4D842E #2E8465
monochromatic
#290E25 #571E4F #842E78 #B13EA1 #C964BB

Accessibility & contrast

On white

7.94
#842E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#842E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E78
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E78#FFFFFF#000000##FFFFFF
##842E781.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C497A
Deuteranopia (green-blind)
#485576
Tritanopia (blue-blind)
#8A354E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842e78;
/* rgb */ color: rgb(132, 46, 120);
/* oklch */ color: oklch(45.4% 0.148 333.7);
Tailwind
colors: {
  custom: {
    50: '#aa6d9f',
    500: '#842e78',
    950: '#000000',
  },
}
SCSS
$custom: #842e78;
$custom-light: #aa6d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#842e78",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 308.372,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45404,
    "c": 0.1481,
    "h": 333.7
  },
  "luminance": 0.08216
}

Semantic roles & 50–950 ramp

primary
#842E78
secondary
#5EB06A
accent
#D86350
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842E78

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

Preview Lab → · Contrast checker → · Palette generator →

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