#9D397B#9D397B

#9D397B is a mid, vivid pink. Relative luminance 0.115; OKLCH L 50.7% C 0.152 H 343.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#9D397B
RGBrgb(157, 57, 123)
HSLhsl(320, 47%, 42%)
HSVhsv(320, 64%, 62%)
CMYKcmyk(0%, 63.7%, 21.7%, 38.4%)
CIE-LABlab(40.45, 48.73, -16.29)
CIE-LCHlch(40.45, 51.38, 341.52°)
OKLaboklab(50.67% 0.1461 -0.0434)
OKLCHoklch(50.67% 0.152 343.4)
XYZxyz(18.9435, 11.5262, 19.9622)
Luminance0.1152 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D397B #399D5B
analogous
#8D399D #9D397B #9D3949
triadic
#9D397B #7B9D39 #397B9D
tetradic
#9D397B #9D8D39 #399D5B #39499D
square
#9D397B #9D8D39 #399D5B #39499D
split-complementary
#9D397B #499D39 #399D8D
monochromatic
#431835 #702958 #9D397B #C0539B #D180B5

Accessibility & contrast

On white

6.35
#9D397B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#9D397B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D397B
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D397B#FFFFFF#000000##FFFFFF
##9D397B1.006.353.306.35
#FFFFFF6.351.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42557D
Deuteranopia (green-blind)
#5F6579
Tritanopia (blue-blind)
#A73955
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d397b;
/* rgb */ color: rgb(157, 57, 123);
/* oklch */ color: oklch(50.7% 0.152 343.4);
Tailwind
colors: {
  custom: {
    50: '#bd76a1',
    500: '#9d397b',
    950: '#000000',
  },
}
SCSS
$custom: #9d397b;
$custom-light: #bd76a1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d397b",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 320.4,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50667,
    "c": 0.15237,
    "h": 343.4
  },
  "luminance": 0.11524
}

Semantic roles & 50–950 ramp

primary
#9D397B
secondary
#78BA8E
accent
#D67F51
background
#FCF7F9
surface
#F8EDF2
border
#D1C8CC
text
#12090F
muted
#817B7E

Preview Lab

Preview with #9D397B

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

Preview Lab → · Contrast checker → · Palette generator →

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