#842E8E#842E8E

#842E8E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.167 H 323.4°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#842E8E
RGBrgb(132, 46, 142)
HSLhsl(294, 51%, 37%)
HSVhsv(294, 68%, 56%)
CMYKcmyk(7%, 67.6%, 0%, 44.3%)
CIE-LABlab(35.62, 49.92, -35.83)
CIE-LCHlch(35.62, 61.45, 324.33°)
OKLaboklab(46.66% 0.1343 -0.0997)
OKLCHoklch(46.66% 0.167 323.4)
XYZxyz(15.3747, 8.8134, 26.4773)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E8E #388E2E
analogous
#542E8E #842E8E #8E2E68
triadic
#842E8E #8E842E #2E8E84
tetradic
#842E8E #8E542E #388E2E #2E688E
square
#842E8E #8E542E #388E2E #2E688E
split-complementary
#842E8E #688E2E #2E8E54
monochromatic
#2E1032 #591F60 #842E8E #AF3DBC #C468CE

Accessibility & contrast

On white

7.60
#842E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#842E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E8E
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E8E#FFFFFF#000000##FFFFFF
##842E8E1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D91
Deuteranopia (green-blind)
#3D578C
Tritanopia (blue-blind)
#863D5A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #842e8e;
/* rgb */ color: rgb(132, 46, 142);
/* oklch */ color: oklch(46.7% 0.167 323.4);
Tailwind
colors: {
  custom: {
    50: '#ab6eaf',
    500: '#842e8e',
    950: '#000000',
  },
}
SCSS
$custom: #842e8e;
$custom-light: #ab6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#842e8e",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 293.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46655,
    "c": 0.16723,
    "h": 323.4
  },
  "luminance": 0.08813
}

Semantic roles & 50–950 ramp

primary
#842E8E
secondary
#6BB563
accent
#DB4D5C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #842E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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