#842AA0#842AA0

#842AA0 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.189 H 316.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#842AA0
RGBrgb(132, 42, 160)
HSLhsl(286, 58%, 40%)
HSVhsv(286, 74%, 63%)
CMYKcmyk(17.5%, 73.8%, 0%, 37.3%)
CIE-LABlab(36.18, 55.08, -45.90)
CIE-LCHlch(36.18, 71.70, 320.20°)
OKLaboklab(47.41% 0.1376 -0.1291)
OKLCHoklch(47.41% 0.189 316.8)
XYZxyz(16.6879, 9.1002, 34.1284)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AA0 #46A02A
analogous
#492AA0 #842AA0 #A02A81
triadic
#842AA0 #A0842A #2AA084
tetradic
#842AA0 #A0492A #46A02A #2A81A0
square
#842AA0 #A0492A #46A02A #2A81A0
split-complementary
#842AA0 #81A02A #2AA049
monochromatic
#34113F #5C1D70 #842AA0 #A93CCC #BF6CD8

Accessibility & contrast

On white

7.45
#842AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#842AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842AA0
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AA0#FFFFFF#000000##FFFFFF
##842AA01.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#2B589D
Tritanopia (blue-blind)
#824363
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842aa0;
/* rgb */ color: rgb(132, 42, 160);
/* oklch */ color: oklch(47.4% 0.189 316.8);
Tailwind
colors: {
  custom: {
    50: '#ac6dbd',
    500: '#842aa0',
    950: '#000000',
  },
}
SCSS
$custom: #842aa0;
$custom-light: #ac6dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#842aa0",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 285.763,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47414,
    "c": 0.18872,
    "h": 316.8
  },
  "luminance": 0.091
}

Semantic roles & 50–950 ramp

primary
#842AA0
secondary
#7CBF67
accent
#E2466B
background
#FAF6FB
surface
#F5ECF6
border
#CFC7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #842AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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