#842E7F#842E7F

#842E7F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.8% C 0.154 H 330.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#842E7F
RGBrgb(132, 46, 127)
HSLhsl(303, 48%, 35%)
HSVhsv(303, 65%, 52%)
CMYKcmyk(0%, 65.2%, 3.8%, 48.2%)
CIE-LABlab(34.79, 47.16, -27.88)
CIE-LCHlch(34.79, 54.79, 329.41°)
OKLaboklab(45.78% 0.1335 -0.0767)
OKLCHoklch(45.78% 0.154 330.1)
XYZxyz(14.3234, 8.3929, 20.9401)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E7F #2E8433
analogous
#5E2E84 #842E7F #842E54
triadic
#842E7F #7F842E #2E7F84
tetradic
#842E7F #845E2E #2E8433 #2E5484
square
#842E7F #845E2E #2E8433 #2E5484
split-complementary
#842E7F #54842E #2E845E
monochromatic
#290E28 #571E53 #842E7F #B13EAB #C964C3

Accessibility & contrast

On white

7.84
#842E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#842E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E7F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E7F#FFFFFF#000000##FFFFFF
##842E7F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274A81
Deuteranopia (green-blind)
#45567D
Tritanopia (blue-blind)
#893752
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #842e7f;
/* rgb */ color: rgb(132, 46, 127);
/* oklch */ color: oklch(45.8% 0.154 330.1);
Tailwind
colors: {
  custom: {
    50: '#aa6da4',
    500: '#842e7f',
    950: '#000000',
  },
}
SCSS
$custom: #842e7f;
$custom-light: #aa6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#842e7f",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 303.488,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45781,
    "c": 0.15396,
    "h": 330.1
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#842E7F
secondary
#5EB063
accent
#D85850
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #842E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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