#842E76#842E76

#842E76 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.3% C 0.146 H 334.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#842E76
RGBrgb(132, 46, 118)
HSLhsl(310, 48%, 35%)
HSVhsv(310, 65%, 52%)
CMYKcmyk(0%, 65.2%, 10.6%, 48.2%)
CIE-LABlab(34.33, 45.61, -22.96)
CIE-LCHlch(34.33, 51.07, 333.28°)
OKLaboklab(45.3% 0.1324 -0.0626)
OKLCHoklch(45.3% 0.146 334.7)
XYZxyz(13.7628, 8.1686, 17.9879)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E76 #2E843C
analogous
#672E84 #842E76 #842E4B
triadic
#842E76 #76842E #2E7684
tetradic
#842E76 #84672E #2E843C #2E4B84
square
#842E76 #84672E #2E843C #2E4B84
split-complementary
#842E76 #4B842E #2E8467
monochromatic
#290E25 #571E4D #842E76 #B13E9F #C964B8

Accessibility & contrast

On white

7.97
#842E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#842E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E76
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E76#FFFFFF#000000##FFFFFF
##842E761.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4978
Deuteranopia (green-blind)
#495574
Tritanopia (blue-blind)
#8A344D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #842e76;
/* rgb */ color: rgb(132, 46, 118);
/* oklch */ color: oklch(45.3% 0.146 334.7);
Tailwind
colors: {
  custom: {
    50: '#aa6d9d',
    500: '#842e76',
    950: '#000000',
  },
}
SCSS
$custom: #842e76;
$custom-light: #aa6d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#842e76",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 309.767,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.453,
    "c": 0.14648,
    "h": 334.7
  },
  "luminance": 0.08168
}

Semantic roles & 50–950 ramp

primary
#842E76
secondary
#5EB06C
accent
#D86650
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842E76

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

Preview Lab → · Contrast checker → · Palette generator →

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