#8B2871#8B2871

#8B2871 is a mid, vivid pink. Relative luminance 0.082; OKLCH L 45.5% C 0.156 H 340.2°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#8B2871
RGBrgb(139, 40, 113)
HSLhsl(316, 55%, 35%)
HSVhsv(316, 71%, 55%)
CMYKcmyk(0%, 71.2%, 18.7%, 45.5%)
CIE-LABlab(34.40, 49.25, -19.62)
CIE-LCHlch(34.40, 53.01, 338.28°)
OKLaboklab(45.5% 0.1467 -0.0529)
OKLCHoklch(45.5% 0.156 340.2)
XYZxyz(14.3873, 8.2002, 16.4447)
Luminance0.0820 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2871 #288B42
analogous
#74288B #8B2871 #8B283F
triadic
#8B2871 #718B28 #28718B
tetradic
#8B2871 #8B7428 #288B42 #283F8B
square
#8B2871 #8B7428 #288B42 #283F8B
split-complementary
#8B2871 #3F8B28 #288B74
monochromatic
#2C0D24 #5B1A4A #8B2871 #BB3698 #D05DB2

Accessibility & contrast

On white

7.96
#8B2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8B2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2871
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2871#FFFFFF#000000##FFFFFF
##8B28711.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#4E576F
Tritanopia (blue-blind)
#932B49
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b2871;
/* rgb */ color: rgb(139, 40, 113);
/* oklch */ color: oklch(45.5% 0.156 340.2);
Tailwind
colors: {
  custom: {
    50: '#b06b9a',
    500: '#8b2871',
    950: '#000000',
  },
}
SCSS
$custom: #8b2871;
$custom-light: #b06b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2871",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 315.758,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45502,
    "c": 0.15591,
    "h": 340.2
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#8B2871
secondary
#59B671
accent
#DF7049
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070E
muted
#807A7E

Preview Lab

Preview with #8B2871

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

Preview Lab → · Contrast checker → · Palette generator →

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