#9D398B#9D398B

#9D398B is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.4% C 0.164 H 335.5°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9D398B
RGBrgb(157, 57, 139)
HSLhsl(311, 47%, 42%)
HSVhsv(311, 64%, 62%)
CMYKcmyk(0%, 63.7%, 11.5%, 38.4%)
CIE-LABlab(41.15, 51.19, -25.02)
CIE-LCHlch(41.15, 56.98, 333.95°)
OKLaboklab(51.41% 0.1491 -0.068)
OKLCHoklch(51.41% 0.164 335.5)
XYZxyz(20.0281, 11.9601, 25.6748)
Luminance0.1196 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D398B #399D4B
analogous
#7D399D #9D398B #9D3959
triadic
#9D398B #8B9D39 #398B9D
tetradic
#9D398B #9D7D39 #399D4B #39599D
square
#9D398B #9D7D39 #399D4B #39599D
split-complementary
#9D398B #599D39 #399D7D
monochromatic
#43183B #702963 #9D398B #C053AD #D180C2

Accessibility & contrast

On white

6.19
#9D398B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9D398B
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D398B#FFFFFF#000000##FFFFFF
##9D398B1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578D
Deuteranopia (green-blind)
#596688
Tritanopia (blue-blind)
#A53F5D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d398b;
/* rgb */ color: rgb(157, 57, 139);
/* oklch */ color: oklch(51.4% 0.164 335.5);
Tailwind
colors: {
  custom: {
    50: '#bd76ad',
    500: '#9d398b',
    950: '#000000',
  },
}
SCSS
$custom: #9d398b;
$custom-light: #bd76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d398b",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 310.8,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51408,
    "c": 0.16392,
    "h": 335.5
  },
  "luminance": 0.11958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D398B

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

Preview Lab → · Contrast checker → · Palette generator →

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