#8D2771#8D2771

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

Color values

HEX#8D2771
RGBrgb(141, 39, 113)
HSLhsl(316, 57%, 35%)
HSVhsv(316, 72%, 55%)
CMYKcmyk(0%, 72.3%, 19.9%, 44.7%)
CIE-LABlab(34.62, 50.17, -19.25)
CIE-LCHlch(34.62, 53.73, 339.01°)
OKLaboklab(45.73% 0.1499 -0.0518)
OKLCHoklch(45.73% 0.159 340.9)
XYZxyz(14.6911, 8.3074, 16.4494)
Luminance0.0831 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2771 #278D43
analogous
#76278D #8D2771 #8D273E
triadic
#8D2771 #718D27 #27718D
tetradic
#8D2771 #8D7627 #278D43 #273E8D
square
#8D2771 #8D7627 #278D43 #273E8D
split-complementary
#8D2771 #3E8D27 #278D76
monochromatic
#2D0C24 #5D1A4B #8D2771 #BD3497 #D25CB2

Accessibility & contrast

On white

7.89
#8D2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8D2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2771
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2771#FFFFFF#000000##FFFFFF
##8D27711.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4773
Deuteranopia (green-blind)
#4F576F
Tritanopia (blue-blind)
#962948
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d2771;
/* rgb */ color: rgb(141, 39, 113);
/* oklch */ color: oklch(45.7% 0.159 340.9);
Tailwind
colors: {
  custom: {
    50: '#b26b9a',
    500: '#8d2771',
    950: '#000000',
  },
}
SCSS
$custom: #8d2771;
$custom-light: #b26b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2771",
  "rgb": {
    "r": 141,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 316.471,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45729,
    "c": 0.15857,
    "h": 340.9
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#8D2771
secondary
#59B773
accent
#E07248
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8D2771

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

Preview Lab → · Contrast checker → · Palette generator →

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