#9C2871#9C2871

#9C2871 is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.3% C 0.168 H 346.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9C2871
RGBrgb(156, 40, 113)
HSLhsl(322, 59%, 38%)
HSVhsv(322, 74%, 61%)
CMYKcmyk(0%, 74.4%, 27.6%, 38.8%)
CIE-LABlab(37.44, 53.82, -14.67)
CIE-LCHlch(37.44, 55.78, 344.75°)
OKLaboklab(48.3% 0.1635 -0.0388)
OKLCHoklch(48.3% 0.168 346.6)
XYZxyz(17.4505, 9.7797, 16.5883)
Luminance0.0978 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2871 #289C53
analogous
#8D289C #9C2871 #9C2837
triadic
#9C2871 #719C28 #28719C
tetradic
#9C2871 #9C8D28 #289C53 #28379C
square
#9C2871 #9C8D28 #289C53 #28379C
split-complementary
#9C2871 #379C28 #289C8D
monochromatic
#3B0F2A #6B1C4E #9C2871 #CB3694 #D867AE

Accessibility & contrast

On white

7.11
#9C2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#9C2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9C2871
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2871#FFFFFF#000000##FFFFFF
##9C28711.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384B73
Deuteranopia (green-blind)
#5A5F6E
Tritanopia (blue-blind)
#A72449
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9c2871;
/* rgb */ color: rgb(156, 40, 113);
/* oklch */ color: oklch(48.3% 0.168 346.6);
Tailwind
colors: {
  custom: {
    50: '#bd6d9a',
    500: '#9c2871',
    950: '#000000',
  },
}
SCSS
$custom: #9c2871;
$custom-light: #bd6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2871",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 322.241,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48296,
    "c": 0.16801,
    "h": 346.6
  },
  "luminance": 0.09778
}

Semantic roles & 50–950 ramp

primary
#9C2871
secondary
#62BE84
accent
#E28045
background
#FCF6F9
surface
#F8ECF2
border
#D1C7CC
text
#13080E
muted
#827A7E

Preview Lab

Preview with #9C2871

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

Preview Lab → · Contrast checker → · Palette generator →

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