#8D1F71#8D1F71

#8D1F71 is a mid, vivid pink. Relative luminance 0.078; OKLCH L 45.0% C 0.168 H 340.5°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#8D1F71
RGBrgb(141, 31, 113)
HSLhsl(315, 64%, 34%)
HSVhsv(315, 78%, 55%)
CMYKcmyk(0%, 78%, 19.9%, 44.7%)
CIE-LABlab(33.64, 52.93, -20.76)
CIE-LCHlch(33.64, 56.85, 338.58°)
OKLaboklab(45.02% 0.1583 -0.056)
OKLCHoklch(45.02% 0.168 340.5)
XYZxyz(14.4556, 7.8364, 16.3709)
Luminance0.0784 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F71 #1F8D3B
analogous
#721F8D #8D1F71 #8D1F3A
triadic
#8D1F71 #718D1F #1F718D
tetradic
#8D1F71 #8D721F #1F8D3B #1F3A8D
square
#8D1F71 #8D721F #1F8D3B #1F3A8D
split-complementary
#8D1F71 #3A8D1F #1F8D72
monochromatic
#290921 #5B1449 #8D1F71 #BF2A99 #D84EB5

Accessibility & contrast

On white

8.18
#8D1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8D1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F71
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F71#FFFFFF#000000##FFFFFF
##8D1F711.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284473
Deuteranopia (green-blind)
#4C556E
Tritanopia (blue-blind)
#962246
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8d1f71;
/* rgb */ color: rgb(141, 31, 113);
/* oklch */ color: oklch(45.0% 0.168 340.5);
Tailwind
colors: {
  custom: {
    50: '#b2679a',
    500: '#8d1f71',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f71;
$custom-light: #b2679a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f71",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 315.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45022,
    "c": 0.16789,
    "h": 340.5
  },
  "luminance": 0.07835
}

Semantic roles & 50–950 ramp

primary
#8D1F71
secondary
#4DBB69
accent
#E76B41
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8D1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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