#842D8D#842D8D

#842D8D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.168 H 323.9°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#842D8D
RGBrgb(132, 45, 141)
HSLhsl(294, 52%, 36%)
HSVhsv(294, 68%, 55%)
CMYKcmyk(6.4%, 68.1%, 0%, 44.7%)
CIE-LABlab(35.41, 50.16, -35.55)
CIE-LCHlch(35.41, 61.48, 324.67°)
OKLaboklab(46.49% 0.1354 -0.0989)
OKLCHoklch(46.49% 0.168 323.9)
XYZxyz(15.2614, 8.7063, 26.0708)
Luminance0.0871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842D8D #368D2D
analogous
#542D8D #842D8D #8D2D66
triadic
#842D8D #8D842D #2D8D84
tetradic
#842D8D #8D542D #368D2D #2D668D
square
#842D8D #8D542D #368D2D #2D668D
split-complementary
#842D8D #668D2D #2D8D54
monochromatic
#2D0F30 #591E5F #842D8D #AF3CBB #C466CE

Accessibility & contrast

On white

7.66
#842D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#842D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842D8D
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842D8D#FFFFFF#000000##FFFFFF
##842D8D1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164D90
Deuteranopia (green-blind)
#3D578B
Tritanopia (blue-blind)
#863C59
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842d8d;
/* rgb */ color: rgb(132, 45, 141);
/* oklch */ color: oklch(46.5% 0.168 323.9);
Tailwind
colors: {
  custom: {
    50: '#ab6daf',
    500: '#842d8d',
    950: '#000000',
  },
}
SCSS
$custom: #842d8d;
$custom-light: #ab6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#842d8d",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 294.375,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.46485,
    "c": 0.16768,
    "h": 323.9
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#842D8D
secondary
#69B561
accent
#DB4D5A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #842D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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