#842E7D#842E7D

#842E7D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.152 H 331.1°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#842E7D
RGBrgb(132, 46, 125)
HSLhsl(305, 48%, 35%)
HSVhsv(305, 65%, 52%)
CMYKcmyk(0%, 65.2%, 5.3%, 48.2%)
CIE-LABlab(34.68, 46.81, -26.80)
CIE-LCHlch(34.68, 53.94, 330.21°)
OKLaboklab(45.67% 0.1333 -0.0735)
OKLCHoklch(45.67% 0.152 331.1)
XYZxyz(14.1943, 8.3412, 20.2605)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E7D #2E8435
analogous
#602E84 #842E7D #842E52
triadic
#842E7D #7D842E #2E7D84
tetradic
#842E7D #84602E #2E8435 #2E5284
square
#842E7D #84602E #2E8435 #2E5284
split-complementary
#842E7D #52842E #2E8460
monochromatic
#290E27 #571E52 #842E7D #B13EA8 #C964C1

Accessibility & contrast

On white

7.87
#842E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#842E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E7D
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E7D#FFFFFF#000000##FFFFFF
##842E7D1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#893751
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842e7d;
/* rgb */ color: rgb(132, 46, 125);
/* oklch */ color: oklch(45.7% 0.152 331.1);
Tailwind
colors: {
  custom: {
    50: '#aa6da3',
    500: '#842e7d',
    950: '#000000',
  },
}
SCSS
$custom: #842e7d;
$custom-light: #aa6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#842e7d",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 304.884,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45671,
    "c": 0.15226,
    "h": 331.1
  },
  "luminance": 0.0834
}

Semantic roles & 50–950 ramp

primary
#842E7D
secondary
#5EB065
accent
#D85B50
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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