#9D2A7C#9D2A7C

#9D2A7C is a mid, vivid pink. Relative luminance 0.103; OKLCH L 49.1% C 0.173 H 341.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#9D2A7C
RGBrgb(157, 42, 124)
HSLhsl(317, 58%, 39%)
HSVhsv(317, 73%, 62%)
CMYKcmyk(0%, 73.2%, 21%, 38.4%)
CIE-LABlab(38.34, 54.86, -20.15)
CIE-LCHlch(38.34, 58.44, 339.83°)
OKLaboklab(49.14% 0.1645 -0.0541)
OKLCHoklch(49.14% 0.173 341.8)
XYZxyz(18.3713, 10.2811, 20.0818)
Luminance0.1028 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2A7C #2A9D4B
analogous
#852A9D #9D2A7C #9D2A43
triadic
#9D2A7C #7C9D2A #2A7C9D
tetradic
#9D2A7C #9D852A #2A9D4B #2A439D
square
#9D2A7C #9D852A #2A9D4B #2A439D
split-complementary
#9D2A7C #439D2A #2A9D85
monochromatic
#3C1030 #6D1D56 #9D2A7C #CA3AA1 #D76AB8

Accessibility & contrast

On white

6.87
#9D2A7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D2A7C
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2A7C#FFFFFF#000000##FFFFFF
##9D2A7C1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#344E7E
Deuteranopia (green-blind)
#586179
Tritanopia (blue-blind)
#A72C4F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9d2a7c;
/* rgb */ color: rgb(157, 42, 124);
/* oklch */ color: oklch(49.1% 0.173 341.8);
Tailwind
colors: {
  custom: {
    50: '#be6fa2',
    500: '#9d2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #9d2a7c;
$custom-light: #be6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2a7c",
  "rgb": {
    "r": 157,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 317.217,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.49138,
    "c": 0.17315,
    "h": 341.8
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#9D2A7C
secondary
#65BE7F
accent
#E17347
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#13080F
muted
#827B7E

Preview Lab

Preview with #9D2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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