#8D2872#8D2872

#8D2872 is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.9% C 0.158 H 340.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8D2872
RGBrgb(141, 40, 114)
HSLhsl(316, 56%, 35%)
HSVhsv(316, 72%, 55%)
CMYKcmyk(0%, 71.6%, 19.1%, 44.7%)
CIE-LABlab(34.80, 49.93, -19.60)
CIE-LCHlch(34.80, 53.64, 338.57°)
OKLaboklab(45.88% 0.1489 -0.0528)
OKLCHoklch(45.88% 0.158 340.5)
XYZxyz(14.7810, 8.3966, 16.7586)
Luminance0.0839 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2872 #288D43
analogous
#75288D #8D2872 #8D283F
triadic
#8D2872 #728D28 #28728D
tetradic
#8D2872 #8D7528 #288D43 #283F8D
square
#8D2872 #8D7528 #288D43 #283F8D
split-complementary
#8D2872 #3F8D28 #288D75
monochromatic
#2E0D25 #5D1A4B #8D2872 #BD3699 #D15EB3

Accessibility & contrast

On white

7.84
#8D2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8D2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2872
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2872#FFFFFF#000000##FFFFFF
##8D28721.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4774
Deuteranopia (green-blind)
#4F5870
Tritanopia (blue-blind)
#952B49
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d2872;
/* rgb */ color: rgb(141, 40, 114);
/* oklch */ color: oklch(45.9% 0.158 340.5);
Tailwind
colors: {
  custom: {
    50: '#b26b9a',
    500: '#8d2872',
    950: '#000000',
  },
}
SCSS
$custom: #8d2872;
$custom-light: #b26b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2872",
  "rgb": {
    "r": 141,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 316.04,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.45875,
    "c": 0.15799,
    "h": 340.5
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#8D2872
secondary
#5AB773
accent
#DF7149
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8D2872

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

Preview Lab → · Contrast checker → · Palette generator →

#8D2872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva