#842E82#842E82

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

Color values

HEX#842E82
RGBrgb(132, 46, 130)
HSLhsl(301, 48%, 35%)
HSVhsv(301, 65%, 52%)
CMYKcmyk(0%, 65.2%, 1.5%, 48.2%)
CIE-LABlab(34.95, 47.70, -29.49)
CIE-LCHlch(34.95, 56.08, 328.27°)
OKLaboklab(45.95% 0.1338 -0.0813)
OKLCHoklch(45.95% 0.157 328.7)
XYZxyz(14.5218, 8.4722, 21.9852)
Luminance0.0847 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E82 #2E8430
analogous
#5B2E84 #842E82 #842E57
triadic
#842E82 #82842E #2E8284
tetradic
#842E82 #845B2E #2E8430 #2E5784
square
#842E82 #845B2E #2E8430 #2E5784
split-complementary
#842E82 #57842E #2E845B
monochromatic
#290E29 #571E55 #842E82 #B13EAF #C964C6

Accessibility & contrast

On white

7.79
#842E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#842E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E82
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E82#FFFFFF#000000##FFFFFF
##842E821.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254B84
Deuteranopia (green-blind)
#445680
Tritanopia (blue-blind)
#883954
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842e82;
/* rgb */ color: rgb(132, 46, 130);
/* oklch */ color: oklch(45.9% 0.157 328.7);
Tailwind
colors: {
  custom: {
    50: '#aa6da6',
    500: '#842e82',
    950: '#000000',
  },
}
SCSS
$custom: #842e82;
$custom-light: #aa6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#842e82",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 301.395,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45949,
    "c": 0.15655,
    "h": 328.7
  },
  "luminance": 0.08471
}

Semantic roles & 50–950 ramp

primary
#842E82
secondary
#5EB060
accent
#D85350
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E82

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

Preview Lab → · Contrast checker → · Palette generator →

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