#842E72#842E72

#842E72 is a mid, vivid pink. Relative luminance 0.081; OKLCH L 45.1% C 0.143 H 336.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#842E72
RGBrgb(132, 46, 114)
HSLhsl(313, 48%, 35%)
HSVhsv(313, 65%, 52%)
CMYKcmyk(0%, 65.2%, 13.6%, 48.2%)
CIE-LABlab(34.14, 44.95, -20.74)
CIE-LCHlch(34.14, 49.51, 335.23°)
OKLaboklab(45.1% 0.1318 -0.0562)
OKLCHoklch(45.1% 0.143 336.9)
XYZxyz(13.5302, 8.0756, 16.7625)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842E72 #2E8440
analogous
#6B2E84 #842E72 #842E47
triadic
#842E72 #72842E #2E7284
tetradic
#842E72 #846B2E #2E8440 #2E4784
square
#842E72 #846B2E #2E8440 #2E4784
split-complementary
#842E72 #47842E #2E846B
monochromatic
#290E24 #571E4B #842E72 #B13E99 #C964B4

Accessibility & contrast

On white

8.03
#842E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#842E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842E72
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842E72#FFFFFF#000000##FFFFFF
##842E721.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304874
Deuteranopia (green-blind)
#4B5570
Tritanopia (blue-blind)
#8B324B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #842e72;
/* rgb */ color: rgb(132, 46, 114);
/* oklch */ color: oklch(45.1% 0.143 336.9);
Tailwind
colors: {
  custom: {
    50: '#aa6d9a',
    500: '#842e72',
    950: '#000000',
  },
}
SCSS
$custom: #842e72;
$custom-light: #aa6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#842e72",
  "rgb": {
    "r": 132,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 312.558,
    "s": 48.315,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.14331,
    "h": 336.9
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#842E72
secondary
#5EB06F
accent
#D86C50
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842E72

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

Preview Lab → · Contrast checker → · Palette generator →

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