#842EAA#842EAA

#842EAA is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.193 H 313.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#842EAA
RGBrgb(132, 46, 170)
HSLhsl(282, 57%, 42%)
HSVhsv(282, 73%, 67%)
CMYKcmyk(22.4%, 72.9%, 0%, 33.3%)
CIE-LABlab(37.41, 55.55, -49.91)
CIE-LCHlch(37.41, 74.68, 318.06°)
OKLaboklab(48.51% 0.1324 -0.1409)
OKLCHoklch(48.51% 0.193 313.2)
XYZxyz(17.7471, 9.7623, 38.9719)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EAA #54AA2E
analogous
#462EAA #842EAA #AA2E92
triadic
#842EAA #AA842E #2EAA84
tetradic
#842EAA #AA462E #54AA2E #2E92AA
square
#842EAA #AA462E #54AA2E #2E92AA
split-complementary
#842EAA #92AA2E #2EAA46
monochromatic
#39144A #5F217A #842EAA #A448CD #BC78DA

Accessibility & contrast

On white

7.11
#842EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#842EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842EAA
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EAA#FFFFFF#000000##FFFFFF
##842EAA1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#235AA7
Tritanopia (blue-blind)
#804969
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842eaa;
/* rgb */ color: rgb(132, 46, 170);
/* oklch */ color: oklch(48.5% 0.193 313.2);
Tailwind
colors: {
  custom: {
    50: '#ac6fc4',
    500: '#842eaa',
    950: '#000000',
  },
}
SCSS
$custom: #842eaa;
$custom-light: #ac6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#842eaa",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 281.613,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48508,
    "c": 0.19339,
    "h": 313.2
  },
  "luminance": 0.09762
}

Semantic roles & 50–950 ramp

primary
#842EAA
secondary
#8AC371
accent
#E14776
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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