#9D3797#9D3797

#9D3797 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.8% C 0.176 H 330.2°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9D3797
RGBrgb(157, 55, 151)
HSLhsl(304, 48%, 42%)
HSVhsv(304, 65%, 62%)
CMYKcmyk(0%, 65%, 3.8%, 38.4%)
CIE-LABlab(41.43, 54.03, -31.86)
CIE-LCHlch(41.43, 62.73, 329.47°)
OKLaboklab(51.8% 0.153 -0.0876)
OKLCHoklch(51.8% 0.176 330.2)
XYZxyz(20.8566, 12.1363, 30.5162)
Luminance0.1213 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3797 #379D3D
analogous
#70379D #9D3797 #9D3764
triadic
#9D3797 #979D37 #37979D
tetradic
#9D3797 #9D7037 #379D3D #37649D
square
#9D3797 #9D7037 #379D3D #37649D
split-complementary
#9D3797 #649D37 #379D70
monochromatic
#421740 #70276B #9D3797 #C250BB #D17DCC

Accessibility & contrast

On white

6.13
#9D3797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#9D3797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3797
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3797#FFFFFF#000000##FFFFFF
##9D37971.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#536794
Tritanopia (blue-blind)
#A34262
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9d3797;
/* rgb */ color: rgb(157, 55, 151);
/* oklch */ color: oklch(51.8% 0.176 330.2);
Tailwind
colors: {
  custom: {
    50: '#bd76b6',
    500: '#9d3797',
    950: '#000000',
  },
}
SCSS
$custom: #9d3797;
$custom-light: #bd76b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3797",
  "rgb": {
    "r": 157,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 303.529,
    "s": 48.113,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51803,
    "c": 0.17635,
    "h": 330.2
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#9D3797
secondary
#75BB79
accent
#D85850
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D3797

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

Preview Lab → · Contrast checker → · Palette generator →

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