#9D2B78#9D2B78

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

Color values

HEX#9D2B78
RGBrgb(157, 43, 120)
HSLhsl(319, 57%, 39%)
HSVhsv(319, 73%, 62%)
CMYKcmyk(0%, 72.6%, 23.6%, 38.4%)
CIE-LABlab(38.29, 53.95, -17.74)
CIE-LCHlch(38.29, 56.79, 341.80°)
OKLaboklab(49.05% 0.1626 -0.0474)
OKLCHoklch(49.05% 0.169 343.8)
XYZxyz(18.1593, 10.2538, 18.7885)
Luminance0.1025 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2B78 #2B9D50
analogous
#892B9D #9D2B78 #9D2B3F
triadic
#9D2B78 #789D2B #2B789D
tetradic
#9D2B78 #9D892B #2B9D50 #2B3F9D
square
#9D2B78 #9D892B #2B9D50 #2B3F9D
split-complementary
#9D2B78 #3F9D2B #2B9D89
monochromatic
#3D112F #6D1E53 #9D2B78 #CA3C9B #D76CB4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D2B78#FFFFFF#000000##FFFFFF
##9D2B781.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)
#374E7A
Deuteranopia (green-blind)
#5A6175
Tritanopia (blue-blind)
#A72B4E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d2b78;
/* rgb */ color: rgb(157, 43, 120);
/* oklch */ color: oklch(49.0% 0.169 343.8);
Tailwind
colors: {
  custom: {
    50: '#be6f9f',
    500: '#9d2b78',
    950: '#000000',
  },
}
SCSS
$custom: #9d2b78;
$custom-light: #be6f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2b78",
  "rgb": {
    "r": 157,
    "g": 43,
    "b": 120
  },
  "hsl": {
    "h": 319.474,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49045,
    "c": 0.16938,
    "h": 343.8
  },
  "luminance": 0.10252
}

Semantic roles & 50–950 ramp

primary
#9D2B78
secondary
#66BD83
accent
#E07948
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9D2B78

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

Preview Lab → · Contrast checker → · Palette generator →

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