#9D398A#9D398A

#9D398A is a mid, vivid pink. Relative luminance 0.119; OKLCH L 51.4% C 0.163 H 335.9°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9D398A
RGBrgb(157, 57, 138)
HSLhsl(311, 47%, 42%)
HSVhsv(311, 64%, 62%)
CMYKcmyk(0%, 63.7%, 12.1%, 38.4%)
CIE-LABlab(41.11, 51.03, -24.48)
CIE-LCHlch(41.11, 56.60, 334.37°)
OKLaboklab(51.36% 0.149 -0.0665)
OKLCHoklch(51.36% 0.163 335.9)
XYZxyz(19.9554, 11.9310, 25.2917)
Luminance0.1193 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D398A #399D4C
analogous
#7E399D #9D398A #9D3958
triadic
#9D398A #8A9D39 #398A9D
tetradic
#9D398A #9D7E39 #399D4C #39589D
square
#9D398A #9D7E39 #399D4C #39589D
split-complementary
#9D398A #589D39 #399D7E
monochromatic
#43183B #702963 #9D398A #C053AC #D180C1

Accessibility & contrast

On white

6.20
#9D398A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9D398A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D398A
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D398A#FFFFFF#000000##FFFFFF
##9D398A1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A578C
Deuteranopia (green-blind)
#5A6687
Tritanopia (blue-blind)
#A53F5C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d398a;
/* rgb */ color: rgb(157, 57, 138);
/* oklch */ color: oklch(51.4% 0.163 335.9);
Tailwind
colors: {
  custom: {
    50: '#bd76ac',
    500: '#9d398a',
    950: '#000000',
  },
}
SCSS
$custom: #9d398a;
$custom-light: #bd76ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d398a",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 311.4,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51359,
    "c": 0.16316,
    "h": 335.9
  },
  "luminance": 0.11929
}

Semantic roles & 50–950 ramp

primary
#9D398A
secondary
#78BA84
accent
#D66B51
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9D398A

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

Preview Lab → · Contrast checker → · Palette generator →

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