#842E96#842E96

#842E96 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.175 H 320.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#842E96
RGBrgb(132, 46, 150)
HSLhsl(290, 53%, 38%)
HSVhsv(290, 69%, 59%)
CMYKcmyk(12%, 69.3%, 0%, 41.2%)
CIE-LABlab(36.10, 51.47, -39.95)
CIE-LCHlch(36.10, 65.16, 322.18°)
OKLaboklab(47.16% 0.1341 -0.1117)
OKLCHoklch(47.16% 0.175 320.2)
XYZxyz(15.9971, 9.0623, 29.7548)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E96 #40962E
analogous
#502E96 #842E96 #962E74
triadic
#842E96 #96842E #2E9684
tetradic
#842E96 #96502E #40962E #2E7496
square
#842E96 #96502E #40962E #2E7496
split-complementary
#842E96 #74962E #2E9650
monochromatic
#321138 #5B2067 #842E96 #AC3EC4 #C06CD2

Accessibility & contrast

On white

7.47
#842E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#842E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E96
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E96#FFFFFF#000000##FFFFFF
##842E961.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054F99
Deuteranopia (green-blind)
#375893
Tritanopia (blue-blind)
#85415E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #842e96;
/* rgb */ color: rgb(132, 46, 150);
/* oklch */ color: oklch(47.2% 0.175 320.2);
Tailwind
colors: {
  custom: {
    50: '#ab6eb5',
    500: '#842e96',
    950: '#000000',
  },
}
SCSS
$custom: #842e96;
$custom-light: #ab6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#842e96",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 289.615,
    "s": 53.061,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47156,
    "c": 0.17458,
    "h": 320.2
  },
  "luminance": 0.09062
}

Semantic roles & 50–950 ramp

primary
#842E96
secondary
#75B967
accent
#DC4B64
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #842E96

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

Preview Lab → · Contrast checker → · Palette generator →

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