#842740#842740

#842740 is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.3% C 0.128 H 8.3°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#842740
RGBrgb(132, 39, 64)
HSLhsl(344, 54%, 34%)
HSVhsv(344, 70%, 52%)
CMYKcmyk(0%, 70.5%, 51.5%, 48.2%)
CIE-LABlab(31.18, 41.53, 7.14)
CIE-LCHlch(31.18, 42.14, 9.76°)
OKLaboklab(42.31% 0.1263 0.0185)
OKLCHoklch(42.31% 0.128 8.3)
XYZxyz(11.1676, 6.7282, 5.5601)
Luminance0.0673 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842740 #27846B
analogous
#84276E #842740 #843C27
triadic
#842740 #408427 #274084
tetradic
#842740 #6E8427 #27846B #3C2784
square
#842740 #6E8427 #27846B #3C2784
split-complementary
#842740 #27843C #276E84
monochromatic
#260B12 #551929 #842740 #B33557 #CE5877

Accessibility & contrast

On white

8.95
#842740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#842740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842740
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842740#FFFFFF#000000##FFFFFF
##8427401.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3E41
Deuteranopia (green-blind)
#55503E
Tritanopia (blue-blind)
#901731
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #842740;
/* rgb */ color: rgb(132, 39, 64);
/* oklch */ color: oklch(42.3% 0.128 8.3);
Tailwind
colors: {
  custom: {
    50: '#ad6874',
    500: '#842740',
    950: '#000000',
  },
}
SCSS
$custom: #842740;
$custom-light: #ad6874;
$custom-dark: #000000;
JSON
{
  "hex": "#842740",
  "rgb": {
    "r": 132,
    "g": 39,
    "b": 64
  },
  "hsl": {
    "h": 343.871,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4231,
    "c": 0.12766,
    "h": 8.3
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#842740
secondary
#54B299
accent
#DEB64A
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #842740

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

Preview Lab → · Contrast checker → · Palette generator →

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