#842D72#842D72

#842D72 is a dark, vivid pink. Relative luminance 0.080; OKLCH L 45.0% C 0.145 H 336.8°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#842D72
RGBrgb(132, 45, 114)
HSLhsl(312, 49%, 35%)
HSVhsv(312, 66%, 52%)
CMYKcmyk(0%, 65.9%, 13.6%, 48.2%)
CIE-LABlab(33.98, 45.39, -20.99)
CIE-LCHlch(33.98, 50.01, 335.18°)
OKLaboklab(44.98% 0.1331 -0.0569)
OKLCHoklch(44.98% 0.145 336.8)
XYZxyz(13.4916, 7.9983, 16.7496)
Luminance0.0800 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842D72 #2D843F
analogous
#6B2D84 #842D72 #842D46
triadic
#842D72 #72842D #2D7284
tetradic
#842D72 #846B2D #2D843F #2D4684
square
#842D72 #846B2D #2D843F #2D4684
split-complementary
#842D72 #46842D #2D846B
monochromatic
#290E23 #561D4B #842D72 #B23D99 #C962B4

Accessibility & contrast

On white

8.08
#842D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#842D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842D72
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842D72#FFFFFF#000000##FFFFFF
##842D721.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4774
Deuteranopia (green-blind)
#4A5570
Tritanopia (blue-blind)
#8B314B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842d72;
/* rgb */ color: rgb(132, 45, 114);
/* oklch */ color: oklch(45.0% 0.145 336.8);
Tailwind
colors: {
  custom: {
    50: '#ab6c9a',
    500: '#842d72',
    950: '#000000',
  },
}
SCSS
$custom: #842d72;
$custom-light: #ab6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#842d72",
  "rgb": {
    "r": 132,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 312.414,
    "s": 49.153,
    "l": 34.706
  },
  "oklch": {
    "l": 0.4498,
    "c": 0.14479,
    "h": 336.8
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#842D72
secondary
#5DB06E
accent
#D96C4F
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842D72

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

Preview Lab → · Contrast checker → · Palette generator →

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