#9C2887#9C2887

#9C2887 is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.3% C 0.182 H 336.4°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#9C2887
RGBrgb(156, 40, 135)
HSLhsl(311, 59%, 38%)
HSVhsv(311, 74%, 61%)
CMYKcmyk(0%, 74.4%, 13.5%, 38.8%)
CIE-LABlab(38.44, 56.89, -26.82)
CIE-LCHlch(38.44, 62.89, 334.76°)
OKLaboklab(49.34% 0.1671 -0.073)
OKLCHoklch(49.34% 0.182 336.4)
XYZxyz(18.8426, 10.3365, 23.9197)
Luminance0.1033 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2887 #289C3D
analogous
#77289C #9C2887 #9C284D
triadic
#9C2887 #879C28 #28879C
tetradic
#9C2887 #9C7728 #289C3D #284D9C
square
#9C2887 #9C7728 #289C3D #284D9C
split-complementary
#9C2887 #4D9C28 #289C77
monochromatic
#3B0F33 #6B1C5D #9C2887 #CB36B0 #D867C3

Accessibility & contrast

On white

6.85
#9C2887 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9C2887 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2887
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2887#FFFFFF#000000##FFFFFF
##9C28871.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4F8A
Deuteranopia (green-blind)
#526184
Tritanopia (blue-blind)
#A43055
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c2887;
/* rgb */ color: rgb(156, 40, 135);
/* oklch */ color: oklch(49.3% 0.182 336.4);
Tailwind
colors: {
  custom: {
    50: '#bd6eaa',
    500: '#9c2887',
    950: '#000000',
  },
}
SCSS
$custom: #9c2887;
$custom-light: #bd6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2887",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 310.862,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49343,
    "c": 0.18234,
    "h": 336.4
  },
  "luminance": 0.10335
}

Semantic roles & 50–950 ramp

primary
#9C2887
secondary
#62BE73
accent
#E26245
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C2887

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

Preview Lab → · Contrast checker → · Palette generator →

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