#842CAB#842CAB

#842CAB is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.197 H 313.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#842CAB
RGBrgb(132, 44, 171)
HSLhsl(282, 59%, 42%)
HSVhsv(282, 74%, 67%)
CMYKcmyk(22.8%, 74.3%, 0%, 32.9%)
CIE-LABlab(37.20, 56.56, -50.85)
CIE-LCHlch(37.20, 76.06, 318.04°)
OKLaboklab(48.38% 0.1343 -0.1437)
OKLCHoklch(48.38% 0.197 313.1)
XYZxyz(17.7658, 9.6477, 39.4465)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842CAB #53AB2C
analogous
#452CAB #842CAB #AB2C93
triadic
#842CAB #AB842C #2CAB84
tetradic
#842CAB #AB452C #53AB2C #2C93AB
square
#842CAB #AB452C #53AB2C #2C93AB
split-complementary
#842CAB #93AB2C #2CAB45
monochromatic
#39134A #5E1F7A #842CAB #A545CF #BC76DC

Accessibility & contrast

On white

7.17
#842CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#842CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842CAB
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842CAB#FFFFFF#000000##FFFFFF
##842CAB1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AF
Deuteranopia (green-blind)
#1F59A8
Tritanopia (blue-blind)
#804869
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842cab;
/* rgb */ color: rgb(132, 44, 171);
/* oklch */ color: oklch(48.4% 0.197 313.1);
Tailwind
colors: {
  custom: {
    50: '#ac6ec5',
    500: '#842cab',
    950: '#000000',
  },
}
SCSS
$custom: #842cab;
$custom-light: #ac6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#842cab",
  "rgb": {
    "r": 132,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 281.575,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48382,
    "c": 0.19663,
    "h": 313.1
  },
  "luminance": 0.09647
}

Semantic roles & 50–950 ramp

primary
#842CAB
secondary
#89C36F
accent
#E24676
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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