#842871#842871

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

Color values

HEX#842871
RGBrgb(132, 40, 113)
HSLhsl(312, 53%, 34%)
HSVhsv(312, 70%, 52%)
CMYKcmyk(0%, 69.7%, 14.4%, 48.2%)
CIE-LABlab(33.17, 47.35, -21.62)
CIE-LCHlch(33.17, 52.05, 335.46°)
OKLaboklab(44.38% 0.1393 -0.0587)
OKLCHoklch(44.38% 0.151 337.1)
XYZxyz(13.2554, 7.6165, 16.3916)
Luminance0.0761 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842871 #28843B
analogous
#692884 #842871 #842843
triadic
#842871 #718428 #287184
tetradic
#842871 #846928 #28843B #284384
square
#842871 #846928 #28843B #284384
split-complementary
#842871 #438428 #288469
monochromatic
#260C21 #551A49 #842871 #B33699 #CD5AB5

Accessibility & contrast

On white

8.32
#842871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#842871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842871
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842871#FFFFFF#000000##FFFFFF
##8428711.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4573
Deuteranopia (green-blind)
#48536F
Tritanopia (blue-blind)
#8B2D49
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842871;
/* rgb */ color: rgb(132, 40, 113);
/* oklch */ color: oklch(44.4% 0.151 337.1);
Tailwind
colors: {
  custom: {
    50: '#ab6a9a',
    500: '#842871',
    950: '#000000',
  },
}
SCSS
$custom: #842871;
$custom-light: #ab6a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#842871",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 312.391,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44376,
    "c": 0.15111,
    "h": 337.1
  },
  "luminance": 0.07615
}

Semantic roles & 50–950 ramp

primary
#842871
secondary
#56B269
accent
#DD694B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842871

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

Preview Lab → · Contrast checker → · Palette generator →

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