#872540#872540

#872540 is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.6% C 0.133 H 8.5°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#872540
RGBrgb(135, 37, 64)
HSLhsl(343, 57%, 34%)
HSVhsv(343, 73%, 53%)
CMYKcmyk(0%, 72.6%, 52.6%, 47.1%)
CIE-LABlab(31.45, 43.33, 7.61)
CIE-LCHlch(31.45, 43.99, 9.96°)
OKLaboklab(42.62% 0.1318 0.0196)
OKLCHoklch(42.62% 0.133 8.5)
XYZxyz(11.5797, 6.8457, 5.5611)
Luminance0.0684 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#872540 #25876C
analogous
#872571 #872540 #873B25
triadic
#872540 #408725 #254087
tetradic
#872540 #718725 #25876C #3B2587
square
#872540 #718725 #25876C #3B2587
split-complementary
#872540 #25873B #257187
monochromatic
#270B12 #571829 #872540 #B73257 #D15678

Accessibility & contrast

On white

8.87
#872540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#872540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #872540
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##872540#FFFFFF#000000##FFFFFF
##8725401.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3D41
Deuteranopia (green-blind)
#56513E
Tritanopia (blue-blind)
#931130
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #872540;
/* rgb */ color: rgb(135, 37, 64);
/* oklch */ color: oklch(42.6% 0.133 8.5);
Tailwind
colors: {
  custom: {
    50: '#af6774',
    500: '#872540',
    950: '#000000',
  },
}
SCSS
$custom: #872540;
$custom-light: #af6774;
$custom-dark: #000000;
JSON
{
  "hex": "#872540",
  "rgb": {
    "r": 135,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 343.469,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.42619,
    "c": 0.13324,
    "h": 8.5
  },
  "luminance": 0.06844
}

Semantic roles & 50–950 ramp

primary
#872540
secondary
#53B59A
accent
#E0B648
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #872540

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

Preview Lab → · Contrast checker → · Palette generator →

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