#9D398E#9D398E

#9D398E is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.6% C 0.166 H 334.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#9D398E
RGBrgb(157, 57, 142)
HSLhsl(309, 47%, 42%)
HSVhsv(309, 64%, 62%)
CMYKcmyk(0%, 63.7%, 9.6%, 38.4%)
CIE-LABlab(41.29, 51.68, -26.63)
CIE-LCHlch(41.29, 58.13, 332.74°)
OKLaboklab(51.56% 0.1496 -0.0726)
OKLCHoklch(51.56% 0.166 334.1)
XYZxyz(20.2504, 12.0489, 26.8451)
Luminance0.1205 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D398E #399D48
analogous
#7A399D #9D398E #9D395C
triadic
#9D398E #8E9D39 #398E9D
tetradic
#9D398E #9D7A39 #399D48 #395C9D
square
#9D398E #9D7A39 #399D48 #395C9D
split-complementary
#9D398E #5C9D39 #399D7A
monochromatic
#43183D #702965 #9D398E #C053B0 #D180C5

Accessibility & contrast

On white

6.16
#9D398E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9D398E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D398E
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D398E#FFFFFF#000000##FFFFFF
##9D398E1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d398e;
/* rgb */ color: rgb(157, 57, 142);
/* oklch */ color: oklch(51.6% 0.166 334.1);
Tailwind
colors: {
  custom: {
    50: '#bd76af',
    500: '#9d398e',
    950: '#000000',
  },
}
SCSS
$custom: #9d398e;
$custom-light: #bd76af;
$custom-dark: #000000;
JSON
{
  "hex": "#9d398e",
  "rgb": {
    "r": 157,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 309,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51558,
    "c": 0.16628,
    "h": 334.1
  },
  "luminance": 0.12047
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D398E

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

Preview Lab → · Contrast checker → · Palette generator →

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