#9D397F#9D397F

#9D397F is a mid, vivid pink. Relative luminance 0.116; OKLCH L 50.8% C 0.155 H 341.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9D397F
RGBrgb(157, 57, 127)
HSLhsl(318, 47%, 42%)
HSVhsv(318, 64%, 62%)
CMYKcmyk(0%, 63.7%, 19.1%, 38.4%)
CIE-LABlab(40.62, 49.32, -18.50)
CIE-LCHlch(40.62, 52.68, 339.44°)
OKLaboklab(50.84% 0.1469 -0.0496)
OKLCHoklch(50.84% 0.155 341.3)
XYZxyz(19.1990, 11.6284, 21.3079)
Luminance0.1163 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D397F #399D57
analogous
#89399D #9D397F #9D394D
triadic
#9D397F #7F9D39 #397F9D
tetradic
#9D397F #9D8939 #399D57 #394D9D
square
#9D397F #9D8939 #399D57 #394D9D
split-complementary
#9D397F #4D9D39 #399D89
monochromatic
#431836 #70295B #9D397F #C053A0 #D180B8

Accessibility & contrast

On white

6.32
#9D397F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9D397F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D397F
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D397F#FFFFFF#000000##FFFFFF
##9D397F1.006.323.336.32
#FFFFFF6.321.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405581
Deuteranopia (green-blind)
#5D667D
Tritanopia (blue-blind)
#A63A57
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d397f;
/* rgb */ color: rgb(157, 57, 127);
/* oklch */ color: oklch(50.8% 0.155 341.3);
Tailwind
colors: {
  custom: {
    50: '#bd76a4',
    500: '#9d397f',
    950: '#000000',
  },
}
SCSS
$custom: #9d397f;
$custom-light: #bd76a4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d397f",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 318,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50843,
    "c": 0.15509,
    "h": 341.3
  },
  "luminance": 0.11627
}

Semantic roles & 50–950 ramp

primary
#9D397F
secondary
#78BA8C
accent
#D67951
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#12090F
muted
#817B7F

Preview Lab

Preview with #9D397F

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

Preview Lab → · Contrast checker → · Palette generator →

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