#842C8A#842C8A

#842C8A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.166 H 325.2°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#842C8A
RGBrgb(132, 44, 138)
HSLhsl(296, 52%, 36%)
HSVhsv(296, 68%, 54%)
CMYKcmyk(4.3%, 68.1%, 0%, 45.9%)
CIE-LABlab(35.09, 50.01, -34.22)
CIE-LCHlch(35.09, 60.60, 325.62°)
OKLaboklab(46.2% 0.1365 -0.095)
OKLCHoklch(46.2% 0.166 325.2)
XYZxyz(15.0035, 8.5428, 24.8985)
Luminance0.0854 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842C8A #328A2C
analogous
#552C8A #842C8A #8A2C61
triadic
#842C8A #8A842C #2C8A84
tetradic
#842C8A #8A552C #328A2C #2C618A
square
#842C8A #8A552C #328A2C #2C618A
split-complementary
#842C8A #618A2C #2C8A55
monochromatic
#2B0E2D #581D5C #842C8A #B03BB8 #C763CD

Accessibility & contrast

On white

7.75
#842C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#842C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842C8A
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842C8A#FFFFFF#000000##FFFFFF
##842C8A1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194C8D
Deuteranopia (green-blind)
#3E5688
Tritanopia (blue-blind)
#873A57
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842c8a;
/* rgb */ color: rgb(132, 44, 138);
/* oklch */ color: oklch(46.2% 0.166 325.2);
Tailwind
colors: {
  custom: {
    50: '#ab6dac',
    500: '#842c8a',
    950: '#000000',
  },
}
SCSS
$custom: #842c8a;
$custom-light: #ab6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#842c8a",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 296.17,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46195,
    "c": 0.16634,
    "h": 325.2
  },
  "luminance": 0.08542
}

Semantic roles & 50–950 ramp

primary
#842C8A
secondary
#64B45E
accent
#DB4D56
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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