#9D2A78#9D2A78

#9D2A78 is a mid, vivid pink. Relative luminance 0.102; OKLCH L 49.0% C 0.171 H 343.7°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9D2A78
RGBrgb(157, 42, 120)
HSLhsl(319, 58%, 39%)
HSVhsv(319, 73%, 62%)
CMYKcmyk(0%, 73.2%, 23.6%, 38.4%)
CIE-LABlab(38.17, 54.31, -17.93)
CIE-LCHlch(38.17, 57.19, 341.73°)
OKLaboklab(48.95% 0.1637 -0.0479)
OKLCHoklch(48.95% 0.171 343.7)
XYZxyz(18.1234, 10.1820, 18.7765)
Luminance0.1018 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2A78 #2A9D4F
analogous
#892A9D #9D2A78 #9D2A3F
triadic
#9D2A78 #789D2A #2A789D
tetradic
#9D2A78 #9D892A #2A9D4F #2A3F9D
square
#9D2A78 #9D892A #2A9D4F #2A3F9D
split-complementary
#9D2A78 #3F9D2A #2A9D89
monochromatic
#3C102E #6D1D53 #9D2A78 #CA3A9C #D76AB4

Accessibility & contrast

On white

6.92
#9D2A78 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9D2A78 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2A78
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2A78#FFFFFF#000000##FFFFFF
##9D2A781.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364E7A
Deuteranopia (green-blind)
#596175
Tritanopia (blue-blind)
#A72A4D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d2a78;
/* rgb */ color: rgb(157, 42, 120);
/* oklch */ color: oklch(49.0% 0.171 343.7);
Tailwind
colors: {
  custom: {
    50: '#be6e9f',
    500: '#9d2a78',
    950: '#000000',
  },
}
SCSS
$custom: #9d2a78;
$custom-light: #be6e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2a78",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 319.304,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48953,
    "c": 0.17059,
    "h": 343.7
  },
  "luminance": 0.1018
}

Semantic roles & 50–950 ramp

primary
#9D2A78
secondary
#65BE82
accent
#E17847
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080E
muted
#827B7E

Preview Lab

Preview with #9D2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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