#8D2171#8D2171

#8D2171 is a mid, vivid pink. Relative luminance 0.079; OKLCH L 45.2% C 0.166 H 340.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#8D2171
RGBrgb(141, 33, 113)
HSLhsl(316, 62%, 34%)
HSVhsv(316, 77%, 55%)
CMYKcmyk(0%, 76.6%, 19.9%, 44.7%)
CIE-LABlab(33.87, 52.28, -20.41)
CIE-LCHlch(33.87, 56.13, 338.67°)
OKLaboklab(45.18% 0.1563 -0.055)
OKLCHoklch(45.18% 0.166 340.6)
XYZxyz(14.5094, 7.9441, 16.3888)
Luminance0.0794 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2171 #218D3D
analogous
#73218D #8D2171 #8D213B
triadic
#8D2171 #718D21 #21718D
tetradic
#8D2171 #8D7321 #218D3D #213B8D
square
#8D2171 #8D7321 #218D3D #213B8D
split-complementary
#8D2171 #3B8D21 #218D73
monochromatic
#2A0A22 #5B1549 #8D2171 #BF2D99 #D652B4

Accessibility & contrast

On white

8.11
#8D2171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8D2171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2171
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2171#FFFFFF#000000##FFFFFF
##8D21711.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4573
Deuteranopia (green-blind)
#4D566F
Tritanopia (blue-blind)
#962446
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d2171;
/* rgb */ color: rgb(141, 33, 113);
/* oklch */ color: oklch(45.2% 0.166 340.6);
Tailwind
colors: {
  custom: {
    50: '#b2689a',
    500: '#8d2171',
    950: '#000000',
  },
}
SCSS
$custom: #8d2171;
$custom-light: #b2689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2171",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 315.556,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45185,
    "c": 0.16571,
    "h": 340.6
  },
  "luminance": 0.07943
}

Semantic roles & 50–950 ramp

primary
#8D2171
secondary
#50BA6B
accent
#E56D43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8D2171

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

Preview Lab → · Contrast checker → · Palette generator →

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