#8D2172#8D2172

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

Color values

HEX#8D2172
RGBrgb(141, 33, 114)
HSLhsl(315, 62%, 34%)
HSVhsv(315, 77%, 55%)
CMYKcmyk(0%, 76.6%, 19.1%, 44.7%)
CIE-LABlab(33.91, 52.42, -20.97)
CIE-LCHlch(33.91, 56.46, 338.20°)
OKLaboklab(45.24% 0.1565 -0.0566)
OKLCHoklch(45.24% 0.166 340.1)
XYZxyz(14.5660, 7.9668, 16.6870)
Luminance0.0796 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2172 #218D3C
analogous
#72218D #8D2172 #8D213C
triadic
#8D2172 #728D21 #21728D
tetradic
#8D2172 #8D7221 #218D3C #213C8D
square
#8D2172 #8D7221 #218D3C #213C8D
split-complementary
#8D2172 #3C8D21 #218D72
monochromatic
#2A0A22 #5B154A #8D2172 #BF2D9A #D652B5

Accessibility & contrast

On white

8.10
#8D2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D2172
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2172#FFFFFF#000000##FFFFFF
##8D21721.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294574
Deuteranopia (green-blind)
#4C5670
Tritanopia (blue-blind)
#962547
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d2172;
/* rgb */ color: rgb(141, 33, 114);
/* oklch */ color: oklch(45.2% 0.166 340.1);
Tailwind
colors: {
  custom: {
    50: '#b2689a',
    500: '#8d2172',
    950: '#000000',
  },
}
SCSS
$custom: #8d2172;
$custom-light: #b2689a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2172",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 315,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.45235,
    "c": 0.16638,
    "h": 340.1
  },
  "luminance": 0.07965
}

Semantic roles & 50–950 ramp

primary
#8D2172
secondary
#50BA6A
accent
#E56B43
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8D2172

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

Preview Lab → · Contrast checker → · Palette generator →

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