#842E8D#842E8D

#842E8D is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.166 H 323.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#842E8D
RGBrgb(132, 46, 141)
HSLhsl(294, 51%, 37%)
HSVhsv(294, 67%, 55%)
CMYKcmyk(6.4%, 67.4%, 0%, 44.7%)
CIE-LABlab(35.56, 49.73, -35.31)
CIE-LCHlch(35.56, 60.99, 324.63°)
OKLaboklab(46.59% 0.1342 -0.0982)
OKLCHoklch(46.59% 0.166 323.8)
XYZxyz(15.3000, 8.7835, 26.0836)
Luminance0.0878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E8D #378D2E
analogous
#552E8D #842E8D #8D2E67
triadic
#842E8D #8D842E #2E8D84
tetradic
#842E8D #8D552E #378D2E #2E678D
square
#842E8D #8D552E #378D2E #2E678D
split-complementary
#842E8D #678D2E #2E8D55
monochromatic
#2E1031 #591F5F #842E8D #AF3DBB #C468CE

Accessibility & contrast

On white

7.62
#842E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842E8D
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E8D#FFFFFF#000000##FFFFFF
##842E8D1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#3E578B
Tritanopia (blue-blind)
#863D59
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #842e8d;
/* rgb */ color: rgb(132, 46, 141);
/* oklch */ color: oklch(46.6% 0.166 323.8);
Tailwind
colors: {
  custom: {
    50: '#ab6eaf',
    500: '#842e8d',
    950: '#000000',
  },
}
SCSS
$custom: #842e8d;
$custom-light: #ab6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#842e8d",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 294.316,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46594,
    "c": 0.16632,
    "h": 323.8
  },
  "luminance": 0.08783
}

Semantic roles & 50–950 ramp

primary
#842E8D
secondary
#6AB562
accent
#DA4E5B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #842E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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