#9D398D#9D398D

#9D398D is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.5% C 0.165 H 334.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9D398D
RGBrgb(157, 57, 141)
HSLhsl(310, 47%, 42%)
HSVhsv(310, 64%, 62%)
CMYKcmyk(0%, 63.7%, 10.2%, 38.4%)
CIE-LABlab(41.25, 51.51, -26.09)
CIE-LCHlch(41.25, 57.74, 333.14°)
OKLaboklab(51.51% 0.1494 -0.0711)
OKLCHoklch(51.51% 0.165 334.6)
XYZxyz(20.1756, 12.0190, 26.4514)
Luminance0.1202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D398D #399D49
analogous
#7B399D #9D398D #9D395B
triadic
#9D398D #8D9D39 #398D9D
tetradic
#9D398D #9D7B39 #399D49 #395B9D
square
#9D398D #9D7B39 #399D49 #395B9D
split-complementary
#9D398D #5B9D39 #399D7B
monochromatic
#43183C #702965 #9D398D #C053AF #D180C4

Accessibility & contrast

On white

6.17
#9D398D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#9D398D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D398D
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D398D#FFFFFF#000000##FFFFFF
##9D398D1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385890
Deuteranopia (green-blind)
#58678A
Tritanopia (blue-blind)
#A4405E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d398d;
/* rgb */ color: rgb(157, 57, 141);
/* oklch */ color: oklch(51.5% 0.165 334.6);
Tailwind
colors: {
  custom: {
    50: '#bd76ae',
    500: '#9d398d',
    950: '#000000',
  },
}
SCSS
$custom: #9d398d;
$custom-light: #bd76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d398d",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 309.6,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51507,
    "c": 0.16549,
    "h": 334.6
  },
  "luminance": 0.12017
}

Semantic roles & 50–950 ramp

primary
#9D398D
secondary
#78BA82
accent
#D66751
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9D398D

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

Preview Lab → · Contrast checker → · Palette generator →

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