#842040#842040

#842040 is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.6% C 0.136 H 6.3°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#842040
RGBrgb(132, 32, 64)
HSLhsl(341, 61%, 32%)
HSVhsv(341, 76%, 52%)
CMYKcmyk(0%, 75.8%, 51.5%, 48.2%)
CIE-LABlab(30.18, 44.30, 5.74)
CIE-LCHlch(30.18, 44.67, 7.38°)
OKLaboklab(41.57% 0.1352 0.015)
OKLCHoklch(41.57% 0.136 6.3)
XYZxyz(10.9586, 6.3102, 5.4904)
Luminance0.0631 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842040 #208464
analogous
#842072 #842040 #843220
triadic
#842040 #408420 #204084
tetradic
#842040 #728420 #208464 #322084
square
#842040 #728420 #208464 #322084
split-complementary
#842040 #208432 #207284
monochromatic
#210810 #531428 #842040 #B52C58 #D34B77

Accessibility & contrast

On white

9.28
#842040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#842040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842040
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842040#FFFFFF#000000##FFFFFF
##8420401.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383A41
Deuteranopia (green-blind)
#534E3E
Tritanopia (blue-blind)
#900A2D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #842040;
/* rgb */ color: rgb(132, 32, 64);
/* oklch */ color: oklch(41.6% 0.136 6.3);
Tailwind
colors: {
  custom: {
    50: '#ad6574',
    500: '#842040',
    950: '#000000',
  },
}
SCSS
$custom: #842040;
$custom-light: #ad6574;
$custom-dark: #000000;
JSON
{
  "hex": "#842040",
  "rgb": {
    "r": 132,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 340.8,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.41571,
    "c": 0.13601,
    "h": 6.3
  },
  "luminance": 0.06309
}

Semantic roles & 50–950 ramp

primary
#842040
secondary
#4AB693
accent
#E4B144
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #842040

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

Preview Lab → · Contrast checker → · Palette generator →

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