#9D2D87#9D2D87

#9D2D87 is a mid, vivid pink. Relative luminance 0.108; OKLCH L 50.0% C 0.177 H 336.9°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9D2D87
RGBrgb(157, 45, 135)
HSLhsl(312, 55%, 40%)
HSVhsv(312, 71%, 62%)
CMYKcmyk(0%, 71.3%, 14%, 38.4%)
CIE-LABlab(39.23, 55.38, -25.56)
CIE-LCHlch(39.23, 60.99, 335.22°)
OKLaboklab(49.95% 0.1629 -0.0695)
OKLCHoklch(49.95% 0.177 336.9)
XYZxyz(19.2165, 10.7959, 23.9887)
Luminance0.1079 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2D87 #2D9D43
analogous
#7B2D9D #9D2D87 #9D2D4F
triadic
#9D2D87 #879D2D #2D879D
tetradic
#9D2D87 #9D7B2D #2D9D43 #2D4F9D
square
#9D2D87 #9D7B2D #2D9D43 #2D4F9D
split-complementary
#9D2D87 #4F9D2D #2D9D7B
monochromatic
#3E1235 #6D1F5E #9D2D87 #C83FAD #D66FC1

Accessibility & contrast

On white

6.65
#9D2D87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9D2D87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2D87
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2D87#FFFFFF#000000##FFFFFF
##9D2D871.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30518A
Deuteranopia (green-blind)
#556384
Tritanopia (blue-blind)
#A53456
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2d87;
/* rgb */ color: rgb(157, 45, 135);
/* oklch */ color: oklch(50.0% 0.177 336.9);
Tailwind
colors: {
  custom: {
    50: '#bd70aa',
    500: '#9d2d87',
    950: '#000000',
  },
}
SCSS
$custom: #9d2d87;
$custom-light: #bd70aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2d87",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 311.786,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.49951,
    "c": 0.17707,
    "h": 336.9
  },
  "luminance": 0.10794
}

Semantic roles & 50–950 ramp

primary
#9D2D87
secondary
#69BD79
accent
#DF6649
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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