#842E6C#842E6C

#842E6C is a dark, vivid pink. Relative luminance 0.079; OKLCH L 44.8% C 0.139 H 340.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#842E6C
RGBrgb(132, 46, 108)
HSLhsl(317, 48%, 35%)
HSVhsv(317, 65%, 52%)
CMYKcmyk(0%, 65.2%, 18.2%, 48.2%)
CIE-LABlab(33.86, 43.99, -17.37)
CIE-LCHlch(33.86, 47.30, 338.45°)
OKLaboklab(44.81% 0.1307 -0.0467)
OKLCHoklch(44.81% 0.139 340.3)
XYZxyz(13.1998, 7.9434, 15.0225)
Luminance0.0794 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E6C #2E8446
analogous
#712E84 #842E6C #842E41
triadic
#842E6C #6C842E #2E6C84
tetradic
#842E6C #84712E #2E8446 #2E4184
square
#842E6C #84712E #2E8446 #2E4184
split-complementary
#842E6C #41842E #2E8471
monochromatic
#290E22 #571E47 #842E6C #B13E91 #C964AD

Accessibility & contrast

On white

8.11
#842E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#842E6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E6C
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E6C#FFFFFF#000000##FFFFFF
##842E6C1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33476E
Deuteranopia (green-blind)
#4D556A
Tritanopia (blue-blind)
#8C3048
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842e6c;
/* rgb */ color: rgb(132, 46, 108);
/* oklch */ color: oklch(44.8% 0.139 340.3);
Tailwind
colors: {
  custom: {
    50: '#ab6d96',
    500: '#842e6c',
    950: '#000000',
  },
}
SCSS
$custom: #842e6c;
$custom-light: #ab6d96;
$custom-dark: #000000;
JSON
{
  "hex": "#842e6c",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 108
  },
  "hsl": {
    "h": 316.744,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44806,
    "c": 0.13877,
    "h": 340.3
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#842E6C
secondary
#5EB075
accent
#D87650
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #842E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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