#9D3897#9D3897

#9D3897 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.9% C 0.175 H 330.2°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9D3897
RGBrgb(157, 56, 151)
HSLhsl(304, 47%, 42%)
HSVhsv(304, 64%, 62%)
CMYKcmyk(0%, 64.3%, 3.8%, 38.4%)
CIE-LABlab(41.58, 53.61, -31.63)
CIE-LCHlch(41.58, 62.24, 329.46°)
OKLaboklab(51.91% 0.1518 -0.087)
OKLCHoklch(51.91% 0.175 330.2)
XYZxyz(20.9046, 12.2323, 30.5322)
Luminance0.1223 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3897 #389D3E
analogous
#71389D #9D3897 #9D3865
triadic
#9D3897 #979D38 #38979D
tetradic
#9D3897 #9D7138 #389D3E #38659D
square
#9D3897 #9D7138 #389D3E #38659D
split-complementary
#9D3897 #659D38 #389D71
monochromatic
#431840 #70286C #9D3897 #C151BA #D17ECC

Accessibility & contrast

On white

6.09
#9D3897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9D3897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3897
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3897#FFFFFF#000000##FFFFFF
##9D38971.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#536794
Tritanopia (blue-blind)
#A34362
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d3897;
/* rgb */ color: rgb(157, 56, 151);
/* oklch */ color: oklch(51.9% 0.175 330.2);
Tailwind
colors: {
  custom: {
    50: '#bd76b6',
    500: '#9d3897',
    950: '#000000',
  },
}
SCSS
$custom: #9d3897;
$custom-light: #bd76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3897",
  "rgb": {
    "r": 157,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 303.564,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.51912,
    "c": 0.17497,
    "h": 330.2
  },
  "luminance": 0.12231
}

Semantic roles & 50–950 ramp

primary
#9D3897
secondary
#76BA7A
accent
#D75951
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D3897

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

Preview Lab → · Contrast checker → · Palette generator →

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