#9D397E#9D397E

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

Color values

HEX#9D397E
RGBrgb(157, 57, 126)
HSLhsl(319, 47%, 42%)
HSVhsv(319, 64%, 62%)
CMYKcmyk(0%, 63.7%, 19.7%, 38.4%)
CIE-LABlab(40.58, 49.17, -17.94)
CIE-LCHlch(40.58, 52.34, 339.95°)
OKLaboklab(50.8% 0.1467 -0.0481)
OKLCHoklch(50.8% 0.154 341.9)
XYZxyz(19.1342, 11.6025, 20.9664)
Luminance0.1160 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D397E #399D58
analogous
#8A399D #9D397E #9D394C
triadic
#9D397E #7E9D39 #397E9D
tetradic
#9D397E #9D8A39 #399D58 #394C9D
square
#9D397E #9D8A39 #399D58 #394C9D
split-complementary
#9D397E #4C9D39 #399D8A
monochromatic
#431836 #70295A #9D397E #C0539E #D180B8

Accessibility & contrast

On white

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

On black

3.32
#9D397E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##9D397E#FFFFFF#000000##FFFFFF
##9D397E1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405580
Deuteranopia (green-blind)
#5E667C
Tritanopia (blue-blind)
#A63A56
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d397e;
/* rgb */ color: rgb(157, 57, 126);
/* oklch */ color: oklch(50.8% 0.154 341.9);
Tailwind
colors: {
  custom: {
    50: '#bd76a3',
    500: '#9d397e',
    950: '#000000',
  },
}
SCSS
$custom: #9d397e;
$custom-light: #bd76a3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d397e",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 318.6,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50799,
    "c": 0.15439,
    "h": 341.9
  },
  "luminance": 0.11601
}

Semantic roles & 50–950 ramp

primary
#9D397E
secondary
#78BA8C
accent
#D67B51
background
#FCF7FA
surface
#F8EDF3
border
#D1C8CD
text
#12090F
muted
#817B7F

Preview Lab

Preview with #9D397E

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

Preview Lab → · Contrast checker → · Palette generator →

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