#842EA0#842EA0

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

Color values

HEX#842EA0
RGBrgb(132, 46, 160)
HSLhsl(285, 55%, 40%)
HSVhsv(285, 71%, 63%)
CMYKcmyk(17.5%, 71.2%, 0%, 37.3%)
CIE-LABlab(36.74, 53.48, -44.99)
CIE-LCHlch(36.74, 69.89, 319.93°)
OKLaboklab(47.82% 0.1335 -0.1265)
OKLCHoklch(47.82% 0.184 316.5)
XYZxyz(16.8369, 9.3983, 34.1780)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EA0 #4AA02E
analogous
#4B2EA0 #842EA0 #A02E83
triadic
#842EA0 #A0842E #2EA084
tetradic
#842EA0 #A04B2E #4AA02E #2E83A0
square
#842EA0 #A04B2E #4AA02E #2E83A0
split-complementary
#842EA0 #83A02E #2EA04B
monochromatic
#361341 #5D2070 #842EA0 #A842C9 #BE72D6

Accessibility & contrast

On white

7.29
#842EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#842EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842EA0
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EA0#FFFFFF#000000##FFFFFF
##842EA01.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #842ea0;
/* rgb */ color: rgb(132, 46, 160);
/* oklch */ color: oklch(47.8% 0.184 316.5);
Tailwind
colors: {
  custom: {
    50: '#ab6fbd',
    500: '#842ea0',
    950: '#000000',
  },
}
SCSS
$custom: #842ea0;
$custom-light: #ab6fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#842ea0",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 160
  },
  "hsl": {
    "h": 285.263,
    "s": 55.34,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47815,
    "c": 0.18392,
    "h": 316.5
  },
  "luminance": 0.09398
}

Semantic roles & 50–950 ramp

primary
#842EA0
secondary
#80BE6C
accent
#DF496E
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #842EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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