#9B2871#9B2871

#9B2871 is a mid, vivid pink. Relative luminance 0.097; OKLCH L 48.1% C 0.167 H 346.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#9B2871
RGBrgb(155, 40, 113)
HSLhsl(322, 59%, 38%)
HSVhsv(322, 74%, 61%)
CMYKcmyk(0%, 74.2%, 27.1%, 39.2%)
CIE-LABlab(37.26, 53.55, -14.97)
CIE-LCHlch(37.26, 55.60, 344.39°)
OKLaboklab(48.13% 0.1625 -0.0396)
OKLCHoklch(48.13% 0.167 346.3)
XYZxyz(17.2578, 9.6803, 16.5792)
Luminance0.0968 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2871 #289B52
analogous
#8B289B #9B2871 #9B2837
triadic
#9B2871 #719B28 #28719B
tetradic
#9B2871 #9B8B28 #289B52 #28379B
square
#9B2871 #9B8B28 #289B52 #28379B
split-complementary
#9B2871 #379B28 #289B8B
monochromatic
#3A0F2A #6A1B4E #9B2871 #CB3594 #D766AE

Accessibility & contrast

On white

7.15
#9B2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#9B2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9B2871
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2871#FFFFFF#000000##FFFFFF
##9B28711.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#374B73
Deuteranopia (green-blind)
#595F6E
Tritanopia (blue-blind)
#A62549
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9b2871;
/* rgb */ color: rgb(155, 40, 113);
/* oklch */ color: oklch(48.1% 0.167 346.3);
Tailwind
colors: {
  custom: {
    50: '#bc6d9a',
    500: '#9b2871',
    950: '#000000',
  },
}
SCSS
$custom: #9b2871;
$custom-light: #bc6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2871",
  "rgb": {
    "r": 155,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 321.913,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4813,
    "c": 0.16728,
    "h": 346.3
  },
  "luminance": 0.09678
}

Semantic roles & 50–950 ramp

primary
#9B2871
secondary
#61BD83
accent
#E27F46
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#12080E
muted
#817B7E

Preview Lab

Preview with #9B2871

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

Preview Lab → · Contrast checker → · Palette generator →

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