#842EAB#842EAB

#842EAB is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.194 H 312.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#842EAB
RGBrgb(132, 46, 171)
HSLhsl(281, 58%, 43%)
HSVhsv(281, 73%, 67%)
CMYKcmyk(22.8%, 73.1%, 0%, 32.9%)
CIE-LABlab(37.48, 55.77, -50.40)
CIE-LCHlch(37.48, 75.16, 317.89°)
OKLaboklab(48.58% 0.1323 -0.1423)
OKLCHoklch(48.58% 0.194 312.9)
XYZxyz(17.8421, 9.8003, 39.4720)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842EAB #55AB2E
analogous
#452EAB #842EAB #AB2E94
triadic
#842EAB #AB842E #2EAB84
tetradic
#842EAB #AB452E #55AB2E #2E94AB
square
#842EAB #AB452E #55AB2E #2E94AB
split-complementary
#842EAB #94AB2E #2EAB45
monochromatic
#3A144B #5F217B #842EAB #A448CE #BC79DB

Accessibility & contrast

On white

7.09
#842EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#842EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842EAB
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842EAB#FFFFFF#000000##FFFFFF
##842EAB1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#215AA8
Tritanopia (blue-blind)
#80496A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #842eab;
/* rgb */ color: rgb(132, 46, 171);
/* oklch */ color: oklch(48.6% 0.194 312.9);
Tailwind
colors: {
  custom: {
    50: '#ac6fc5',
    500: '#842eab',
    950: '#000000',
  },
}
SCSS
$custom: #842eab;
$custom-light: #ac6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#842eab",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 281.28,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4858,
    "c": 0.19434,
    "h": 312.9
  },
  "luminance": 0.098
}

Semantic roles & 50–950 ramp

primary
#842EAB
secondary
#8BC372
accent
#E14777
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #842EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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