#842AAA#842AAA

#842AAA is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.1% C 0.198 H 313.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#842AAA
RGBrgb(132, 42, 170)
HSLhsl(282, 60%, 42%)
HSVhsv(282, 75%, 67%)
CMYKcmyk(22.4%, 75.3%, 0%, 33.3%)
CIE-LABlab(36.86, 57.12, -50.80)
CIE-LCHlch(36.86, 76.44, 318.35°)
OKLaboklab(48.12% 0.1363 -0.1435)
OKLCHoklch(48.12% 0.198 313.5)
XYZxyz(17.5981, 9.4643, 38.9222)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842AAA #50AA2A
analogous
#442AAA #842AAA #AA2A90
triadic
#842AAA #AA842A #2AAA84
tetradic
#842AAA #AA442A #50AA2A #2A90AA
square
#842AAA #AA442A #50AA2A #2A90AA
split-complementary
#842AAA #90AA2A #2AAA44
monochromatic
#381248 #5E1E79 #842AAA #A641D0 #BD72DC

Accessibility & contrast

On white

7.26
#842AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#842AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842AAA
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842AAA#FFFFFF#000000##FFFFFF
##842AAA1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#1E59A7
Tritanopia (blue-blind)
#804768
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #842aaa;
/* rgb */ color: rgb(132, 42, 170);
/* oklch */ color: oklch(48.1% 0.198 313.5);
Tailwind
colors: {
  custom: {
    50: '#ac6dc4',
    500: '#842aaa',
    950: '#000000',
  },
}
SCSS
$custom: #842aaa;
$custom-light: #ac6dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#842aaa",
  "rgb": {
    "r": 132,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 282.188,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48119,
    "c": 0.19792,
    "h": 313.5
  },
  "luminance": 0.09464
}

Semantic roles & 50–950 ramp

primary
#842AAA
secondary
#86C36C
accent
#E44474
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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