#842E71#842E71

#842E71 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.0% C 0.143 H 337.4°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#842E71
RGBrgb(132, 46, 113)
HSLhsl(313, 48%, 35%)
HSVhsv(313, 65%, 52%)
CMYKcmyk(0%, 65.2%, 14.4%, 48.2%)
CIE-LABlab(34.09, 44.79, -20.18)
CIE-LCHlch(34.09, 49.13, 335.74°)
OKLaboklab(45.05% 0.1316 -0.0547)
OKLCHoklch(45.05% 0.143 337.4)
XYZxyz(13.4736, 8.0529, 16.4643)
Luminance0.0805 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E71 #2E8441
analogous
#6C2E84 #842E71 #842E46
triadic
#842E71 #71842E #2E7184
tetradic
#842E71 #846C2E #2E8441 #2E4684
square
#842E71 #846C2E #2E8441 #2E4684
split-complementary
#842E71 #46842E #2E846C
monochromatic
#290E23 #571E4A #842E71 #B13E98 #C964B2

Accessibility & contrast

On white

8.04
#842E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#842E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E71
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E71#FFFFFF#000000##FFFFFF
##842E711.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304873
Deuteranopia (green-blind)
#4B556F
Tritanopia (blue-blind)
#8B324B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842e71;
/* rgb */ color: rgb(132, 46, 113);
/* oklch */ color: oklch(45.0% 0.143 337.4);
Tailwind
colors: {
  custom: {
    50: '#aa6d9a',
    500: '#842e71',
    950: '#000000',
  },
}
SCSS
$custom: #842e71;
$custom-light: #aa6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#842e71",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 313.256,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45048,
    "c": 0.14253,
    "h": 337.4
  },
  "luminance": 0.08052
}

Semantic roles & 50–950 ramp

primary
#842E71
secondary
#5EB070
accent
#D86E50
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842E71

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

Preview Lab → · Contrast checker → · Palette generator →

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