#9D398F#9D398F

#9D398F is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.6% C 0.167 H 333.6°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9D398F
RGBrgb(157, 57, 143)
HSLhsl(308, 47%, 42%)
HSVhsv(308, 64%, 62%)
CMYKcmyk(0%, 63.7%, 8.9%, 38.4%)
CIE-LABlab(41.34, 51.84, -27.16)
CIE-LCHlch(41.34, 58.52, 332.35°)
OKLaboklab(51.61% 0.1497 -0.0742)
OKLCHoklch(51.61% 0.167 333.6)
XYZxyz(20.3258, 12.0791, 27.2422)
Luminance0.1208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D398F #399D47
analogous
#79399D #9D398F #9D395D
triadic
#9D398F #8F9D39 #398F9D
tetradic
#9D398F #9D7939 #399D47 #395D9D
square
#9D398F #9D7939 #399D47 #395D9D
split-complementary
#9D398F #5D9D39 #399D79
monochromatic
#43183D #702966 #9D398F #C053B1 #D180C5

Accessibility & contrast

On white

6.15
#9D398F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9D398F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D398F
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D398F#FFFFFF#000000##FFFFFF
##9D398F1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375892
Deuteranopia (green-blind)
#57678C
Tritanopia (blue-blind)
#A4415F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d398f;
/* rgb */ color: rgb(157, 57, 143);
/* oklch */ color: oklch(51.6% 0.167 333.6);
Tailwind
colors: {
  custom: {
    50: '#bd76b0',
    500: '#9d398f',
    950: '#000000',
  },
}
SCSS
$custom: #9d398f;
$custom-light: #bd76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d398f",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 308.4,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51608,
    "c": 0.16707,
    "h": 333.6
  },
  "luminance": 0.12078
}

Semantic roles & 50–950 ramp

primary
#9D398F
secondary
#78BA81
accent
#D66451
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9D398F

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

Preview Lab → · Contrast checker → · Palette generator →

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