#9D3196#9D3196

#9D3196 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.1% C 0.183 H 330.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9D3196
RGBrgb(157, 49, 150)
HSLhsl(304, 52%, 40%)
HSVhsv(304, 69%, 62%)
CMYKcmyk(0%, 68.8%, 4.5%, 38.4%)
CIE-LABlab(40.52, 56.26, -32.69)
CIE-LCHlch(40.52, 65.07, 329.84°)
OKLaboklab(51.13% 0.1599 -0.09)
OKLCHoklch(51.13% 0.183 330.6)
XYZxyz(20.5079, 11.5683, 30.0010)
Luminance0.1157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3196 #319D38
analogous
#6E319D #9D3196 #9D3160
triadic
#9D3196 #969D31 #31969D
tetradic
#9D3196 #9D6E31 #319D38 #31609D
square
#9D3196 #9D6E31 #319D38 #31609D
split-complementary
#9D3196 #609D31 #319D6E
monochromatic
#40143D #6E2269 #9D3196 #C546BD #D475CE

Accessibility & contrast

On white

6.34
#9D3196 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9D3196 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3196
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3196#FFFFFF#000000##FFFFFF
##9D31961.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285699
Deuteranopia (green-blind)
#506593
Tritanopia (blue-blind)
#A33D5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d3196;
/* rgb */ color: rgb(157, 49, 150);
/* oklch */ color: oklch(51.1% 0.183 330.6);
Tailwind
colors: {
  custom: {
    50: '#bd73b5',
    500: '#9d3196',
    950: '#000000',
  },
}
SCSS
$custom: #9d3196;
$custom-light: #bd73b5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3196",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 303.889,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51127,
    "c": 0.18345,
    "h": 330.6
  },
  "luminance": 0.11567
}

Semantic roles & 50–950 ramp

primary
#9D3196
secondary
#6EBC73
accent
#DC554C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D3196

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

Preview Lab → · Contrast checker → · Palette generator →

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