#872040#872040

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

Color values

HEX#872040
RGBrgb(135, 32, 64)
HSLhsl(341, 62%, 33%)
HSVhsv(341, 76%, 53%)
CMYKcmyk(0%, 76.3%, 52.6%, 47.1%)
CIE-LABlab(30.77, 45.22, 6.66)
CIE-LCHlch(30.77, 45.71, 8.37°)
OKLaboklab(42.12% 0.1379 0.0172)
OKLCHoklch(42.12% 0.139 7.1)
XYZxyz(11.4346, 6.5557, 5.5127)
Luminance0.0655 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872040 #208767
analogous
#872074 #872040 #873320
triadic
#872040 #408720 #204087
tetradic
#872040 #748720 #208767 #332087
square
#872040 #748720 #208767 #332087
split-complementary
#872040 #208733 #207487
monochromatic
#240911 #561429 #872040 #B82C57 #D54D77

Accessibility & contrast

On white

9.09
#872040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#872040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872040
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872040#FFFFFF#000000##FFFFFF
##8720401.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393B41
Deuteranopia (green-blind)
#54503E
Tritanopia (blue-blind)
#93072D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #872040;
/* rgb */ color: rgb(135, 32, 64);
/* oklch */ color: oklch(42.1% 0.139 7.1);
Tailwind
colors: {
  custom: {
    50: '#af6574',
    500: '#872040',
    950: '#000000',
  },
}
SCSS
$custom: #872040;
$custom-light: #af6574;
$custom-dark: #000000;
JSON
{
  "hex": "#872040",
  "rgb": {
    "r": 135,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 341.359,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42116,
    "c": 0.13893,
    "h": 7.1
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#872040
secondary
#4BB896
accent
#E5B343
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #872040

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

Preview Lab → · Contrast checker → · Palette generator →

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