#842AA2#842AA2

#842AA2 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.191 H 316.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#842AA2
RGBrgb(132, 42, 162)
HSLhsl(285, 59%, 40%)
HSVhsv(285, 74%, 64%)
CMYKcmyk(18.5%, 74.1%, 0%, 36.5%)
CIE-LABlab(36.31, 55.48, -46.89)
CIE-LCHlch(36.31, 72.64, 319.80°)
OKLaboklab(47.55% 0.1374 -0.132)
OKLCHoklch(47.55% 0.191 316.1)
XYZxyz(16.8643, 9.1708, 35.0572)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AA2 #48A22A
analogous
#482AA2 #842AA2 #A22A84
triadic
#842AA2 #A2842A #2AA284
tetradic
#842AA2 #A2482A #48A22A #2A84A2
square
#842AA2 #A2482A #48A22A #2A84A2
split-complementary
#842AA2 #84A22A #2AA248
monochromatic
#351141 #5C1D71 #842AA2 #A93DCD #BE6DD9

Accessibility & contrast

On white

7.41
#842AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#842AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842AA2
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AA2#FFFFFF#000000##FFFFFF
##842AA21.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#29589F
Tritanopia (blue-blind)
#824364
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842aa2;
/* rgb */ color: rgb(132, 42, 162);
/* oklch */ color: oklch(47.6% 0.191 316.1);
Tailwind
colors: {
  custom: {
    50: '#ac6dbe',
    500: '#842aa2',
    950: '#000000',
  },
}
SCSS
$custom: #842aa2;
$custom-light: #ac6dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#842aa2",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 285,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.47552,
    "c": 0.19055,
    "h": 316.1
  },
  "luminance": 0.0917
}

Semantic roles & 50–950 ramp

primary
#842AA2
secondary
#7EC068
accent
#E2466D
background
#FAF6FB
surface
#F5ECF7
border
#CFC7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #842AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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