#9D287B#9D287B

#9D287B is a mid, vivid pink. Relative luminance 0.101; OKLCH L 48.9% C 0.175 H 342.1°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#9D287B
RGBrgb(157, 40, 123)
HSLhsl(317, 59%, 39%)
HSVhsv(317, 75%, 62%)
CMYKcmyk(0%, 74.5%, 21.7%, 38.4%)
CIE-LABlab(38.05, 55.41, -19.98)
CIE-LCHlch(38.05, 58.90, 340.18°)
OKLaboklab(48.91% 0.1664 -0.0536)
OKLCHoklch(48.91% 0.175 342.1)
XYZxyz(18.2392, 10.1176, 19.7274)
Luminance0.1012 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D287B #289D4A
analogous
#84289D #9D287B #9D2840
triadic
#9D287B #7B9D28 #287B9D
tetradic
#9D287B #9D8428 #289D4A #28409D
square
#9D287B #9D8428 #289D4A #28409D
split-complementary
#9D287B #409D28 #289D84
monochromatic
#3B0F2F #6C1C55 #9D287B #CC36A0 #D867B7

Accessibility & contrast

On white

6.95
#9D287B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#9D287B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D287B
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D287B#FFFFFF#000000##FFFFFF
##9D287B1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334D7D
Deuteranopia (green-blind)
#586078
Tritanopia (blue-blind)
#A7294E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d287b;
/* rgb */ color: rgb(157, 40, 123);
/* oklch */ color: oklch(48.9% 0.175 342.1);
Tailwind
colors: {
  custom: {
    50: '#be6ea1',
    500: '#9d287b',
    950: '#000000',
  },
}
SCSS
$custom: #9d287b;
$custom-light: #be6ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d287b",
  "rgb": {
    "r": 157,
    "g": 40,
    "b": 123
  },
  "hsl": {
    "h": 317.436,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48913,
    "c": 0.17484,
    "h": 342.1
  },
  "luminance": 0.10116
}

Semantic roles & 50–950 ramp

primary
#9D287B
secondary
#62BE7D
accent
#E37345
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #9D287B

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

Preview Lab → · Contrast checker → · Palette generator →

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