#842171#842171

#842171 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.7% C 0.160 H 336.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#842171
RGBrgb(132, 33, 113)
HSLhsl(312, 60%, 32%)
HSVhsv(312, 75%, 52%)
CMYKcmyk(0%, 75%, 14.4%, 48.2%)
CIE-LABlab(32.23, 50.00, -23.09)
CIE-LCHlch(32.23, 55.07, 335.22°)
OKLaboklab(43.69% 0.1472 -0.0628)
OKLCHoklch(43.69% 0.16 336.9)
XYZxyz(13.0404, 7.1867, 16.3200)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842171 #218434
analogous
#652184 #842171 #842140
triadic
#842171 #718421 #217184
tetradic
#842171 #846521 #218434 #214084
square
#842171 #846521 #218434 #214084
split-complementary
#842171 #408421 #218465
monochromatic
#22091D #531547 #842171 #B52D9B #D24DB9

Accessibility & contrast

On white

8.62
#842171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#842171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842171
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842171#FFFFFF#000000##FFFFFF
##8421711.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#8B2746
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #842171;
/* rgb */ color: rgb(132, 33, 113);
/* oklch */ color: oklch(43.7% 0.160 336.9);
Tailwind
colors: {
  custom: {
    50: '#ab679a',
    500: '#842171',
    950: '#000000',
  },
}
SCSS
$custom: #842171;
$custom-light: #ab679a;
$custom-dark: #000000;
JSON
{
  "hex": "#842171",
  "rgb": {
    "r": 132,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 311.515,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43692,
    "c": 0.16001,
    "h": 336.9
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

primary
#842171
secondary
#4BB660
accent
#E36345
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #842171

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

Preview Lab → · Contrast checker → · Palette generator →

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