#842DA1#842DA1

#842DA1 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.186 H 316.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#842DA1
RGBrgb(132, 45, 161)
HSLhsl(285, 56%, 40%)
HSVhsv(285, 72%, 63%)
CMYKcmyk(18%, 72%, 0%, 36.9%)
CIE-LABlab(36.66, 54.09, -45.72)
CIE-LCHlch(36.66, 70.83, 319.80°)
OKLaboklab(47.78% 0.1345 -0.1286)
OKLCHoklch(47.78% 0.186 316.3)
XYZxyz(16.8861, 9.3562, 34.6277)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DA1 #4AA12D
analogous
#4A2DA1 #842DA1 #A12D84
triadic
#842DA1 #A1842D #2DA184
tetradic
#842DA1 #A14A2D #4AA12D #2D84A1
square
#842DA1 #A14A2D #4AA12D #2D84A1
split-complementary
#842DA1 #84A12D #2DA14A
monochromatic
#361241 #5D2071 #842DA1 #A841CA #BE71D7

Accessibility & contrast

On white

7.31
#842DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#842DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842DA1
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DA1#FFFFFF#000000##FFFFFF
##842DA11.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A4
Deuteranopia (green-blind)
#2D599E
Tritanopia (blue-blind)
#824564
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842da1;
/* rgb */ color: rgb(132, 45, 161);
/* oklch */ color: oklch(47.8% 0.186 316.3);
Tailwind
colors: {
  custom: {
    50: '#ab6ebd',
    500: '#842da1',
    950: '#000000',
  },
}
SCSS
$custom: #842da1;
$custom-light: #ab6ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#842da1",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 285,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4778,
    "c": 0.18609,
    "h": 316.3
  },
  "luminance": 0.09356
}

Semantic roles & 50–950 ramp

primary
#842DA1
secondary
#80BF6B
accent
#E0486E
background
#FAF6FB
surface
#F5ECF7
border
#CFC7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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