#8B1871#8B1871

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

Color values

HEX#8B1871
RGBrgb(139, 24, 113)
HSLhsl(314, 71%, 32%)
HSVhsv(314, 83%, 55%)
CMYKcmyk(0%, 82.7%, 18.7%, 45.5%)
CIE-LABlab(32.56, 54.47, -22.47)
CIE-LCHlch(32.56, 58.92, 337.58°)
OKLaboklab(44.17% 0.1625 -0.0609)
OKLCHoklch(44.17% 0.174 339.5)
XYZxyz(13.9551, 7.3359, 16.3006)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1871 #188B32
analogous
#6C188B #8B1871 #8B1838
triadic
#8B1871 #718B18 #18718B
tetradic
#8B1871 #8B6C18 #188B32 #18388B
square
#8B1871 #8B6C18 #188B32 #18388B
split-complementary
#8B1871 #388B18 #188B6C
monochromatic
#23061C #570F47 #8B1871 #BF219B #DE3FBA

Accessibility & contrast

On white

8.51
#8B1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8B1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1871
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1871#FFFFFF#000000##FFFFFF
##8B18711.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214173
Deuteranopia (green-blind)
#48536E
Tritanopia (blue-blind)
#931D44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8b1871;
/* rgb */ color: rgb(139, 24, 113);
/* oklch */ color: oklch(44.2% 0.173 339.5);
Tailwind
colors: {
  custom: {
    50: '#b1649a',
    500: '#8b1871',
    950: '#000000',
  },
}
SCSS
$custom: #8b1871;
$custom-light: #b1649a;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1871",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 313.565,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44174,
    "c": 0.1735,
    "h": 339.5
  },
  "luminance": 0.07334
}

Semantic roles & 50–950 ramp

primary
#8B1871
secondary
#40BE5D
accent
#ED633A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8B1871

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

Preview Lab → · Contrast checker → · Palette generator →

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