#842EAC#842EAC

#842EAC is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.195 H 312.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#842EAC
RGBrgb(132, 46, 172)
HSLhsl(281, 58%, 43%)
HSVhsv(281, 73%, 67%)
CMYKcmyk(23.3%, 73.3%, 0%, 32.5%)
CIE-LABlab(37.55, 55.98, -50.88)
CIE-LCHlch(37.55, 75.65, 317.73°)
OKLaboklab(48.65% 0.1322 -0.1438)
OKLCHoklch(48.65% 0.195 312.6)
XYZxyz(17.9378, 9.8386, 39.9758)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EAC #56AC2E
analogous
#452EAC #842EAC #AC2E95
triadic
#842EAC #AC842E #2EAC84
tetradic
#842EAC #AC452E #56AC2E #2E95AC
square
#842EAC #AC452E #56AC2E #2E95AC
split-complementary
#842EAC #95AC2E #2EAC45
monochromatic
#3A144B #5F217C #842EAC #A449CE #BC79DB

Accessibility & contrast

On white

7.08
#842EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#842EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842EAC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EAC#FFFFFF#000000##FFFFFF
##842EAC1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B0
Deuteranopia (green-blind)
#205AA9
Tritanopia (blue-blind)
#7F4A6A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842eac;
/* rgb */ color: rgb(132, 46, 172);
/* oklch */ color: oklch(48.7% 0.195 312.6);
Tailwind
colors: {
  custom: {
    50: '#ac6fc5',
    500: '#842eac',
    950: '#000000',
  },
}
SCSS
$custom: #842eac;
$custom-light: #ac6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#842eac",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 280.952,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48651,
    "c": 0.19529,
    "h": 312.6
  },
  "luminance": 0.09838
}

Semantic roles & 50–950 ramp

primary
#842EAC
secondary
#8CC372
accent
#E14778
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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