#9D3496#9D3496

#9D3496 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.4% C 0.180 H 330.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9D3496
RGBrgb(157, 52, 150)
HSLhsl(304, 50%, 41%)
HSVhsv(304, 67%, 62%)
CMYKcmyk(0%, 66.9%, 4.5%, 38.4%)
CIE-LABlab(40.94, 55.09, -32.03)
CIE-LCHlch(40.94, 63.72, 329.82°)
OKLaboklab(51.43% 0.1565 -0.0881)
OKLCHoklch(51.43% 0.18 330.6)
XYZxyz(20.6376, 11.8276, 30.0442)
Luminance0.1183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3496 #349D3B
analogous
#6F349D #9D3496 #9D3461
triadic
#9D3496 #969D34 #34969D
tetradic
#9D3496 #9D6F34 #349D3B #34619D
square
#9D3496 #9D6F34 #349D3B #34619D
split-complementary
#9D3496 #619D34 #349D6F
monochromatic
#41163E #6F256A #9D3496 #C34BBB #D379CD

Accessibility & contrast

On white

6.24
#9D3496 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9D3496 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3496
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3496#FFFFFF#000000##FFFFFF
##9D34961.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5799
Deuteranopia (green-blind)
#526693
Tritanopia (blue-blind)
#A34060
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9d3496;
/* rgb */ color: rgb(157, 52, 150);
/* oklch */ color: oklch(51.4% 0.180 330.6);
Tailwind
colors: {
  custom: {
    50: '#bd74b5',
    500: '#9d3496',
    950: '#000000',
  },
}
SCSS
$custom: #9d3496;
$custom-light: #bd74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3496",
  "rgb": {
    "r": 157,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 304,
    "s": 50.239,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5143,
    "c": 0.17958,
    "h": 330.6
  },
  "luminance": 0.11826
}

Semantic roles & 50–950 ramp

primary
#9D3496
secondary
#72BB77
accent
#DA574E
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D3496

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

Preview Lab → · Contrast checker → · Palette generator →

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