#842AA4#842AA4

#842AA4 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.192 H 315.5°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#842AA4
RGBrgb(132, 42, 164)
HSLhsl(284, 59%, 40%)
HSVhsv(284, 74%, 64%)
CMYKcmyk(19.5%, 74.4%, 0%, 35.7%)
CIE-LABlab(36.45, 55.89, -47.87)
CIE-LCHlch(36.45, 73.59, 319.42°)
OKLaboklab(47.69% 0.1372 -0.1349)
OKLCHoklch(47.69% 0.192 315.5)
XYZxyz(17.0434, 9.2424, 36.0009)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AA4 #4AA42A
analogous
#472AA4 #842AA4 #A42A87
triadic
#842AA4 #A4842A #2AA484
tetradic
#842AA4 #A4472A #4AA42A #2A87A4
square
#842AA4 #A4472A #4AA42A #2A87A4
split-complementary
#842AA4 #87A42A #2AA447
monochromatic
#361143 #5D1E73 #842AA4 #A83ECD #BE6EDA

Accessibility & contrast

On white

7.37
#842AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#842AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842AA4
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AA4#FFFFFF#000000##FFFFFF
##842AA41.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2758A1
Tritanopia (blue-blind)
#824465
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #842aa4;
/* rgb */ color: rgb(132, 42, 164);
/* oklch */ color: oklch(47.7% 0.192 315.5);
Tailwind
colors: {
  custom: {
    50: '#ac6dc0',
    500: '#842aa4',
    950: '#000000',
  },
}
SCSS
$custom: #842aa4;
$custom-light: #ac6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#842aa4",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 284.262,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.47692,
    "c": 0.19239,
    "h": 315.5
  },
  "luminance": 0.09242
}

Semantic roles & 50–950 ramp

primary
#842AA4
secondary
#80C169
accent
#E2456F
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #842AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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