#842DAB#842DAB

#842DAB is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.195 H 313.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#842DAB
RGBrgb(132, 45, 171)
HSLhsl(281, 58%, 42%)
HSVhsv(281, 74%, 67%)
CMYKcmyk(22.8%, 73.7%, 0%, 32.9%)
CIE-LABlab(37.34, 56.17, -50.62)
CIE-LCHlch(37.34, 75.61, 317.97°)
OKLaboklab(48.48% 0.1333 -0.143)
OKLCHoklch(48.48% 0.195 313)
XYZxyz(17.8035, 9.7231, 39.4591)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842DAB #54AB2D
analogous
#452DAB #842DAB #AB2D93
triadic
#842DAB #AB842D #2DAB84
tetradic
#842DAB #AB452D #54AB2D #2D93AB
square
#842DAB #AB452D #54AB2D #2D93AB
split-complementary
#842DAB #93AB2D #2DAB45
monochromatic
#39144A #5F207B #842DAB #A447CE #BC77DB

Accessibility & contrast

On white

7.13
#842DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#842DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842DAB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842DAB#FFFFFF#000000##FFFFFF
##842DAB1.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#205AA8
Tritanopia (blue-blind)
#80496A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842dab;
/* rgb */ color: rgb(132, 45, 171);
/* oklch */ color: oklch(48.5% 0.195 313.0);
Tailwind
colors: {
  custom: {
    50: '#ac6fc5',
    500: '#842dab',
    950: '#000000',
  },
}
SCSS
$custom: #842dab;
$custom-light: #ac6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#842dab",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 281.429,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4848,
    "c": 0.19549,
    "h": 313
  },
  "luminance": 0.09723
}

Semantic roles & 50–950 ramp

primary
#842DAB
secondary
#8AC371
accent
#E24676
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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