#9C2787#9C2787

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

Color values

HEX#9C2787
RGBrgb(156, 39, 135)
HSLhsl(311, 60%, 38%)
HSVhsv(311, 75%, 61%)
CMYKcmyk(0%, 75%, 13.5%, 38.8%)
CIE-LABlab(38.32, 57.22, -27.00)
CIE-LCHlch(38.32, 63.27, 334.74°)
OKLaboklab(49.26% 0.1681 -0.0736)
OKLCHoklch(49.26% 0.183 336.4)
XYZxyz(18.8093, 10.2699, 23.9087)
Luminance0.1027 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2787 #279C3C
analogous
#76279C #9C2787 #9C274C
triadic
#9C2787 #879C27 #27879C
tetradic
#9C2787 #9C7627 #279C3C #274C9C
square
#9C2787 #9C7627 #279C3C #274C9C
split-complementary
#9C2787 #4C9C27 #279C76
monochromatic
#3A0F32 #6B1B5D #9C2787 #CC34B1 #D865C4

Accessibility & contrast

On white

6.88
#9C2787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#9C2787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2787
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2787#FFFFFF#000000##FFFFFF
##9C27871.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F8A
Deuteranopia (green-blind)
#526084
Tritanopia (blue-blind)
#A42F54
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9c2787;
/* rgb */ color: rgb(156, 39, 135);
/* oklch */ color: oklch(49.3% 0.183 336.4);
Tailwind
colors: {
  custom: {
    50: '#bd6eaa',
    500: '#9c2787',
    950: '#000000',
  },
}
SCSS
$custom: #9c2787;
$custom-light: #bd6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2787",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 310.769,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.49259,
    "c": 0.18347,
    "h": 336.4
  },
  "luminance": 0.10268
}

Semantic roles & 50–950 ramp

primary
#9C2787
secondary
#61BE71
accent
#E36145
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C2787

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

Preview Lab → · Contrast checker → · Palette generator →

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