#8D3271#8D3271

#8D3271 is a mid, vivid pink. Relative luminance 0.091; OKLCH L 46.9% C 0.143 H 341.8°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#8D3271
RGBrgb(141, 50, 113)
HSLhsl(318, 48%, 37%)
HSVhsv(318, 65%, 55%)
CMYKcmyk(0%, 64.5%, 19.9%, 44.7%)
CIE-LABlab(36.25, 45.63, -16.73)
CIE-LCHlch(36.25, 48.60, 339.86°)
OKLaboklab(46.92% 0.1361 -0.0448)
OKLCHoklch(46.92% 0.143 341.8)
XYZxyz(15.1061, 9.1376, 16.5877)
Luminance0.0914 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3271 #328D4E
analogous
#7C328D #8D3271 #8D3243
triadic
#8D3271 #718D32 #32718D
tetradic
#8D3271 #8D7C32 #328D4E #32438D
square
#8D3271 #8D7C32 #328D4E #32438D
split-complementary
#8D3271 #438D32 #328D7C
monochromatic
#331229 #60224D #8D3271 #BA4295 #CC6EAF

Accessibility & contrast

On white

7.43
#8D3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8D3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D3271
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3271#FFFFFF#000000##FFFFFF
##8D32711.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#545B6F
Tritanopia (blue-blind)
#95334D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8d3271;
/* rgb */ color: rgb(141, 50, 113);
/* oklch */ color: oklch(46.9% 0.143 341.8);
Tailwind
colors: {
  custom: {
    50: '#b1709a',
    500: '#8d3271',
    950: '#000000',
  },
}
SCSS
$custom: #8d3271;
$custom-light: #b1709a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3271",
  "rgb": {
    "r": 141,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 318.462,
    "s": 47.644,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46922,
    "c": 0.14333,
    "h": 341.8
  },
  "luminance": 0.09136
}

Semantic roles & 50–950 ramp

primary
#8D3271
secondary
#68B37F
accent
#D77A51
background
#FBF7F9
surface
#F6EDF2
border
#D0C8CC
text
#11080E
muted
#807B7E

Preview Lab

Preview with #8D3271

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

Preview Lab → · Contrast checker → · Palette generator →

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