#842872#842872

#842872 is a dark, vivid pink. Relative luminance 0.076; OKLCH L 44.4% C 0.152 H 336.6°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#842872
RGBrgb(132, 40, 114)
HSLhsl(312, 53%, 34%)
HSVhsv(312, 70%, 52%)
CMYKcmyk(0%, 69.7%, 13.6%, 48.2%)
CIE-LABlab(33.22, 47.51, -22.17)
CIE-LCHlch(33.22, 52.43, 334.98°)
OKLaboklab(44.43% 0.1394 -0.0603)
OKLCHoklch(44.43% 0.152 336.6)
XYZxyz(13.3120, 7.6392, 16.6897)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842872 #28843A
analogous
#682884 #842872 #842844
triadic
#842872 #728428 #287284
tetradic
#842872 #846828 #28843A #284484
square
#842872 #846828 #28843A #284484
split-complementary
#842872 #448428 #288468
monochromatic
#260C21 #551A49 #842872 #B3369B #CD5AB6

Accessibility & contrast

On white

8.31
#842872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#842872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842872
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842872#FFFFFF#000000##FFFFFF
##8428721.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4574
Deuteranopia (green-blind)
#485370
Tritanopia (blue-blind)
#8B2D49
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842872;
/* rgb */ color: rgb(132, 40, 114);
/* oklch */ color: oklch(44.4% 0.152 336.6);
Tailwind
colors: {
  custom: {
    50: '#ab6a9b',
    500: '#842872',
    950: '#000000',
  },
}
SCSS
$custom: #842872;
$custom-light: #ab6a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#842872",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 311.739,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44427,
    "c": 0.15186,
    "h": 336.6
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#842872
secondary
#56B268
accent
#DD674B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842872

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

Preview Lab → · Contrast checker → · Palette generator →

#842872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva