#842873#842873

#842873 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.5% C 0.153 H 336.1°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#842873
RGBrgb(132, 40, 115)
HSLhsl(311, 53%, 34%)
HSVhsv(311, 70%, 52%)
CMYKcmyk(0%, 69.7%, 12.9%, 48.2%)
CIE-LABlab(33.27, 47.66, -22.73)
CIE-LCHlch(33.27, 52.81, 334.51°)
OKLaboklab(44.48% 0.1395 -0.0618)
OKLCHoklch(44.48% 0.153 336.1)
XYZxyz(13.3692, 7.6621, 16.9911)
Luminance0.0766 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842873 #288439
analogous
#672884 #842873 #842845
triadic
#842873 #738428 #287384
tetradic
#842873 #846728 #288439 #284584
square
#842873 #846728 #288439 #284584
split-complementary
#842873 #458428 #288467
monochromatic
#260C21 #551A4A #842873 #B3369C #CD5AB8

Accessibility & contrast

On white

8.29
#842873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842873
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842873#FFFFFF#000000##FFFFFF
##8428731.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294575
Deuteranopia (green-blind)
#485371
Tritanopia (blue-blind)
#8B2E4A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842873;
/* rgb */ color: rgb(132, 40, 115);
/* oklch */ color: oklch(44.5% 0.153 336.1);
Tailwind
colors: {
  custom: {
    50: '#ab6a9b',
    500: '#842873',
    950: '#000000',
  },
}
SCSS
$custom: #842873;
$custom-light: #ab6a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#842873",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 311.087,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44479,
    "c": 0.15262,
    "h": 336.1
  },
  "luminance": 0.07661
}

Semantic roles & 50–950 ramp

primary
#842873
secondary
#56B267
accent
#DD664B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842873

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

Preview Lab → · Contrast checker → · Palette generator →

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