#842C8D#842C8D

#842C8D is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.169 H 323.9°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#842C8D
RGBrgb(132, 44, 141)
HSLhsl(294, 52%, 36%)
HSVhsv(294, 69%, 55%)
CMYKcmyk(6.4%, 68.8%, 0%, 44.7%)
CIE-LABlab(35.26, 50.57, -35.79)
CIE-LCHlch(35.26, 61.95, 324.72°)
OKLaboklab(46.38% 0.1366 -0.0996)
OKLCHoklch(46.38% 0.169 323.9)
XYZxyz(15.2237, 8.6309, 26.0582)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842C8D #358D2C
analogous
#542C8D #842C8D #8D2C66
triadic
#842C8D #8D842C #2C8D84
tetradic
#842C8D #8D542C #358D2C #2C668D
square
#842C8D #8D542C #358D2C #2C668D
split-complementary
#842C8D #668D2C #2C8D54
monochromatic
#2D0F30 #581D5E #842C8D #B03BBC #C565CF

Accessibility & contrast

On white

7.70
#842C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#842C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842C8D
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842C8D#FFFFFF#000000##FFFFFF
##842C8D1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#3C578B
Tritanopia (blue-blind)
#863C59
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842c8d;
/* rgb */ color: rgb(132, 44, 141);
/* oklch */ color: oklch(46.4% 0.169 323.9);
Tailwind
colors: {
  custom: {
    50: '#ab6daf',
    500: '#842c8d',
    950: '#000000',
  },
}
SCSS
$custom: #842c8d;
$custom-light: #ab6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#842c8d",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 294.433,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46378,
    "c": 0.169,
    "h": 323.9
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#842C8D
secondary
#68B560
accent
#DC4C59
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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