#8D1271#8D1271

#8D1271 is a dark, vivid pink. Relative luminance 0.073; OKLCH L 44.2% C 0.179 H 340.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#8D1271
RGBrgb(141, 18, 113)
HSLhsl(314, 77%, 31%)
HSVhsv(314, 87%, 55%)
CMYKcmyk(0%, 87.2%, 19.9%, 44.7%)
CIE-LABlab(32.46, 56.33, -22.61)
CIE-LCHlch(32.46, 60.70, 338.14°)
OKLaboklab(44.17% 0.1687 -0.0612)
OKLCHoklch(44.17% 0.179 340.1)
XYZxyz(14.1819, 7.2891, 16.2796)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1271 #128D2E
analogous
#6B128D #8D1271 #8D1233
triadic
#8D1271 #718D12 #12718D
tetradic
#8D1271 #8D6B12 #128D2E #12338D
square
#8D1271 #8D6B12 #128D2E #12338D
split-complementary
#8D1271 #338D12 #128D6B
monochromatic
#20041A #570B46 #8D1271 #C3199C #E534BD

Accessibility & contrast

On white

8.54
#8D1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#8D1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1271
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1271#FFFFFF#000000##FFFFFF
##8D12711.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#48536E
Tritanopia (blue-blind)
#961843
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8d1271;
/* rgb */ color: rgb(141, 18, 113);
/* oklch */ color: oklch(44.2% 0.179 340.1);
Tailwind
colors: {
  custom: {
    50: '#b2639a',
    500: '#8d1271',
    950: '#000000',
  },
}
SCSS
$custom: #8d1271;
$custom-light: #b2639a;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1271",
  "rgb": {
    "r": 141,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 313.659,
    "s": 77.358,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4417,
    "c": 0.1794,
    "h": 340.1
  },
  "luminance": 0.07288
}

Semantic roles & 50–950 ramp

primary
#8D1271
secondary
#39C158
accent
#F46034
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8D1271

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

Preview Lab → · Contrast checker → · Palette generator →

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