#9D3198#9D3198

#9D3198 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.2% C 0.185 H 329.8°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9D3198
RGBrgb(157, 49, 152)
HSLhsl(303, 52%, 40%)
HSVhsv(303, 69%, 62%)
CMYKcmyk(0%, 68.8%, 3.2%, 38.4%)
CIE-LABlab(40.63, 56.60, -33.74)
CIE-LCHlch(40.63, 65.89, 329.20°)
OKLaboklab(51.24% 0.16 -0.093)
OKLCHoklch(51.24% 0.185 329.8)
XYZxyz(20.6703, 11.6332, 30.8564)
Luminance0.1163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3198 #319D36
analogous
#6C319D #9D3198 #9D3162
triadic
#9D3198 #989D31 #31989D
tetradic
#9D3198 #9D6C31 #319D36 #31629D
square
#9D3198 #9D6C31 #319D36 #31629D
split-complementary
#9D3198 #629D31 #319D6C
monochromatic
#40143E #6E226B #9D3198 #C546BF #D475CF

Accessibility & contrast

On white

6.31
#9D3198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9D3198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3198
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3198#FFFFFF#000000##FFFFFF
##9D31981.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26569B
Deuteranopia (green-blind)
#4F6595
Tritanopia (blue-blind)
#A33E61
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d3198;
/* rgb */ color: rgb(157, 49, 152);
/* oklch */ color: oklch(51.2% 0.185 329.8);
Tailwind
colors: {
  custom: {
    50: '#bd73b7',
    500: '#9d3198',
    950: '#000000',
  },
}
SCSS
$custom: #9d3198;
$custom-light: #bd73b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3198",
  "rgb": {
    "r": 157,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 302.778,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51238,
    "c": 0.18505,
    "h": 329.8
  },
  "luminance": 0.11632
}

Semantic roles & 50–950 ramp

primary
#9D3198
secondary
#6EBC72
accent
#DC534C
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D3198

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

Preview Lab → · Contrast checker → · Palette generator →

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