#872042#872042

#872042 is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.2% C 0.139 H 5.8°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#872042
RGBrgb(135, 32, 66)
HSLhsl(340, 62%, 33%)
HSVhsv(340, 76%, 53%)
CMYKcmyk(0%, 76.3%, 51.1%, 47.1%)
CIE-LABlab(30.83, 45.40, 5.41)
CIE-LCHlch(30.83, 45.72, 6.79°)
OKLaboklab(42.17% 0.1387 0.0142)
OKLCHoklch(42.17% 0.139 5.8)
XYZxyz(11.4925, 6.5788, 5.8179)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872042 #208765
analogous
#872076 #872042 #873120
triadic
#872042 #428720 #204287
tetradic
#872042 #768720 #208765 #312087
square
#872042 #768720 #208765 #312087
split-complementary
#872042 #208731 #207687
monochromatic
#240912 #56142A #872042 #B82C5A #D54D7A

Accessibility & contrast

On white

9.07
#872042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#872042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872042
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872042#FFFFFF#000000##FFFFFF
##8720421.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393C43
Deuteranopia (green-blind)
#545040
Tritanopia (blue-blind)
#93082E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #872042;
/* rgb */ color: rgb(135, 32, 66);
/* oklch */ color: oklch(42.2% 0.139 5.8);
Tailwind
colors: {
  custom: {
    50: '#af6576',
    500: '#872042',
    950: '#000000',
  },
}
SCSS
$custom: #872042;
$custom-light: #af6576;
$custom-dark: #000000;
JSON
{
  "hex": "#872042",
  "rgb": {
    "r": 135,
    "g": 32,
    "b": 66
  },
  "hsl": {
    "h": 340.194,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42174,
    "c": 0.13937,
    "h": 5.8
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#872042
secondary
#4BB894
accent
#E5AF43
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #872042

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

Preview Lab → · Contrast checker → · Palette generator →

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