#842CAA#842CAA

#842CAA is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.196 H 313.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#842CAA
RGBrgb(132, 44, 170)
HSLhsl(282, 59%, 42%)
HSVhsv(282, 74%, 67%)
CMYKcmyk(22.4%, 74.1%, 0%, 33.3%)
CIE-LABlab(37.13, 56.35, -50.36)
CIE-LCHlch(37.13, 75.58, 318.21°)
OKLaboklab(48.31% 0.1344 -0.1422)
OKLCHoklch(48.31% 0.196 313.4)
XYZxyz(17.6708, 9.6097, 38.9464)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CAA #52AA2C
analogous
#452CAA #842CAA #AA2C91
triadic
#842CAA #AA842C #2CAA84
tetradic
#842CAA #AA452C #52AA2C #2C91AA
square
#842CAA #AA452C #52AA2C #2C91AA
split-complementary
#842CAA #91AA2C #2CAA45
monochromatic
#391349 #5E1F79 #842CAA #A544CF #BC75DB

Accessibility & contrast

On white

7.19
#842CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#842CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842CAA
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CAA#FFFFFF#000000##FFFFFF
##842CAA1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#2059A7
Tritanopia (blue-blind)
#804869
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842caa;
/* rgb */ color: rgb(132, 44, 170);
/* oklch */ color: oklch(48.3% 0.196 313.4);
Tailwind
colors: {
  custom: {
    50: '#ac6ec4',
    500: '#842caa',
    950: '#000000',
  },
}
SCSS
$custom: #842caa;
$custom-light: #ac6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#842caa",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 281.905,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4831,
    "c": 0.19569,
    "h": 313.4
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#842CAA
secondary
#88C36F
accent
#E24675
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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