#8D2772#8D2772

#8D2772 is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.8% C 0.159 H 340.4°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8D2772
RGBrgb(141, 39, 114)
HSLhsl(316, 57%, 35%)
HSVhsv(316, 72%, 55%)
CMYKcmyk(0%, 72.3%, 19.1%, 44.7%)
CIE-LABlab(34.66, 50.31, -19.81)
CIE-LCHlch(34.66, 54.07, 338.51°)
OKLaboklab(45.78% 0.15 -0.0534)
OKLCHoklch(45.78% 0.159 340.4)
XYZxyz(14.7477, 8.3301, 16.7475)
Luminance0.0833 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2772 #278D42
analogous
#75278D #8D2772 #8D273F
triadic
#8D2772 #728D27 #27728D
tetradic
#8D2772 #8D7527 #278D42 #273F8D
square
#8D2772 #8D7527 #278D42 #273F8D
split-complementary
#8D2772 #3F8D27 #278D75
monochromatic
#2D0C24 #5D1A4B #8D2772 #BD3499 #D25CB3

Accessibility & contrast

On white

7.88
#8D2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8D2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2772
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2772#FFFFFF#000000##FFFFFF
##8D27721.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4774
Deuteranopia (green-blind)
#4E5770
Tritanopia (blue-blind)
#962A49
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d2772;
/* rgb */ color: rgb(141, 39, 114);
/* oklch */ color: oklch(45.8% 0.159 340.4);
Tailwind
colors: {
  custom: {
    50: '#b26b9a',
    500: '#8d2772',
    950: '#000000',
  },
}
SCSS
$custom: #8d2772;
$custom-light: #b26b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2772",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 315.882,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45777,
    "c": 0.15926,
    "h": 340.4
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

primary
#8D2772
secondary
#59B772
accent
#E07048
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8D2772

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

Preview Lab → · Contrast checker → · Palette generator →

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