#9D2A7D#9D2A7D

#9D2A7D is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.2% C 0.174 H 341.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#9D2A7D
RGBrgb(157, 42, 125)
HSLhsl(317, 58%, 39%)
HSVhsv(317, 73%, 62%)
CMYKcmyk(0%, 73.2%, 20.4%, 38.4%)
CIE-LABlab(38.39, 55.00, -20.70)
CIE-LCHlch(38.39, 58.77, 339.37°)
OKLaboklab(49.19% 0.1646 -0.0557)
OKLCHoklch(49.19% 0.174 341.3)
XYZxyz(18.4348, 10.3065, 20.4166)
Luminance0.1031 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2A7D #2A9D4A
analogous
#842A9D #9D2A7D #9D2A43
triadic
#9D2A7D #7D9D2A #2A7D9D
tetradic
#9D2A7D #9D842A #2A9D4A #2A439D
square
#9D2A7D #9D842A #2A9D4A #2A439D
split-complementary
#9D2A7D #439D2A #2A9D84
monochromatic
#3C1030 #6D1D57 #9D2A7D #CA3AA2 #D76AB9

Accessibility & contrast

On white

6.86
#9D2A7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#9D2A7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2A7D
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2A7D#FFFFFF#000000##FFFFFF
##9D2A7D1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334E7F
Deuteranopia (green-blind)
#58617A
Tritanopia (blue-blind)
#A72C50
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d2a7d;
/* rgb */ color: rgb(157, 42, 125);
/* oklch */ color: oklch(49.2% 0.174 341.3);
Tailwind
colors: {
  custom: {
    50: '#be6fa3',
    500: '#9d2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #9d2a7d;
$custom-light: #be6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2a7d",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 316.696,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49185,
    "c": 0.1738,
    "h": 341.3
  },
  "luminance": 0.10305
}

Semantic roles & 50–950 ramp

primary
#9D2A7D
secondary
#65BE7E
accent
#E17247
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#13080F
muted
#827B7F

Preview Lab

Preview with #9D2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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