#842E83#842E83

#842E83 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.157 H 328.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#842E83
RGBrgb(132, 46, 131)
HSLhsl(301, 48%, 35%)
HSVhsv(301, 65%, 52%)
CMYKcmyk(0%, 65.2%, 0.8%, 48.2%)
CIE-LABlab(35.00, 47.88, -30.03)
CIE-LCHlch(35.00, 56.52, 327.91°)
OKLaboklab(46.01% 0.1338 -0.0829)
OKLCHoklch(46.01% 0.157 328.2)
XYZxyz(14.5893, 8.4992, 22.3404)
Luminance0.0850 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E83 #2E842F
analogous
#5A2E84 #842E83 #842E58
triadic
#842E83 #83842E #2E8384
tetradic
#842E83 #845A2E #2E842F #2E5884
square
#842E83 #845A2E #2E842F #2E5884
split-complementary
#842E83 #58842E #2E845A
monochromatic
#290E29 #571E56 #842E83 #B13EB0 #C964C8

Accessibility & contrast

On white

7.78
#842E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#842E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E83
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E83#FFFFFF#000000##FFFFFF
##842E831.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244B86
Deuteranopia (green-blind)
#435681
Tritanopia (blue-blind)
#883954
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842e83;
/* rgb */ color: rgb(132, 46, 131);
/* oklch */ color: oklch(46.0% 0.157 328.2);
Tailwind
colors: {
  custom: {
    50: '#ab6ea7',
    500: '#842e83',
    950: '#000000',
  },
}
SCSS
$custom: #842e83;
$custom-light: #ab6ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#842e83",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 300.698,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46005,
    "c": 0.15742,
    "h": 328.2
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#842E83
secondary
#5EB05F
accent
#D85150
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E83

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

Preview Lab → · Contrast checker → · Palette generator →

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