#842E8A#842E8A

#842E8A is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.164 H 325.1°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#842E8A
RGBrgb(132, 46, 138)
HSLhsl(296, 50%, 36%)
HSVhsv(296, 67%, 54%)
CMYKcmyk(4.3%, 66.7%, 0%, 45.9%)
CIE-LABlab(35.39, 49.17, -33.74)
CIE-LCHlch(35.39, 59.63, 325.54°)
OKLaboklab(46.41% 0.1342 -0.0936)
OKLCHoklch(46.41% 0.164 325.1)
XYZxyz(15.0798, 8.6954, 24.9239)
Luminance0.0869 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E8A #348A2E
analogous
#562E8A #842E8A #8A2E62
triadic
#842E8A #8A842E #2E8A84
tetradic
#842E8A #8A562E #348A2E #2E628A
square
#842E8A #8A562E #348A2E #2E628A
split-complementary
#842E8A #628A2E #2E8A56
monochromatic
#2C0F2E #581F5C #842E8A #B03DB8 #C566CC

Accessibility & contrast

On white

7.67
#842E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#842E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E8A
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E8A#FFFFFF#000000##FFFFFF
##842E8A1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#3F5788
Tritanopia (blue-blind)
#873C58
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #842e8a;
/* rgb */ color: rgb(132, 46, 138);
/* oklch */ color: oklch(46.4% 0.164 325.1);
Tailwind
colors: {
  custom: {
    50: '#ab6eac',
    500: '#842e8a',
    950: '#000000',
  },
}
SCSS
$custom: #842e8a;
$custom-light: #ab6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#842e8a",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 296.087,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46413,
    "c": 0.16362,
    "h": 325.1
  },
  "luminance": 0.08695
}

Semantic roles & 50–950 ramp

primary
#842E8A
secondary
#66B361
accent
#DA4E57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #842E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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