#9D2A87#9D2A87

#9D2A87 is a mid, vivid pink. Relative luminance 0.106; OKLCH L 49.7% C 0.181 H 336.8°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#9D2A87
RGBrgb(157, 42, 135)
HSLhsl(311, 58%, 39%)
HSVhsv(311, 73%, 62%)
CMYKcmyk(0%, 73.2%, 14%, 38.4%)
CIE-LABlab(38.86, 56.45, -26.15)
CIE-LCHlch(38.86, 62.22, 335.14°)
OKLaboklab(49.68% 0.1661 -0.0712)
OKLCHoklch(49.68% 0.181 336.8)
XYZxyz(19.1061, 10.5750, 23.9519)
Luminance0.1057 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2A87 #2A9D40
analogous
#7A2A9D #9D2A87 #9D2A4E
triadic
#9D2A87 #879D2A #2A879D
tetradic
#9D2A87 #9D7A2A #2A9D40 #2A4E9D
square
#9D2A87 #9D7A2A #2A9D40 #2A4E9D
split-complementary
#9D2A87 #4E9D2A #2A9D7A
monochromatic
#3C1034 #6D1D5D #9D2A87 #CA3AAF #D76AC2

Accessibility & contrast

On white

6.74
#9D2A87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9D2A87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2A87
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2A87#FFFFFF#000000##FFFFFF
##9D2A871.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D508A
Deuteranopia (green-blind)
#546284
Tritanopia (blue-blind)
#A53155
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d2a87;
/* rgb */ color: rgb(157, 42, 135);
/* oklch */ color: oklch(49.7% 0.181 336.8);
Tailwind
colors: {
  custom: {
    50: '#bd6faa',
    500: '#9d2a87',
    950: '#000000',
  },
}
SCSS
$custom: #9d2a87;
$custom-light: #bd6faa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2a87",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 311.478,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49677,
    "c": 0.18066,
    "h": 336.8
  },
  "luminance": 0.10573
}

Semantic roles & 50–950 ramp

primary
#9D2A87
secondary
#65BE76
accent
#E16447
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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