#9D3397#9D3397

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

Color values

HEX#9D3397
RGBrgb(157, 51, 151)
HSLhsl(303, 51%, 41%)
HSVhsv(303, 68%, 62%)
CMYKcmyk(0%, 67.5%, 3.8%, 38.4%)
CIE-LABlab(40.85, 55.65, -32.78)
CIE-LCHlch(40.85, 64.59, 329.50°)
OKLaboklab(51.38% 0.1577 -0.0903)
OKLCHoklch(51.38% 0.182 330.2)
XYZxyz(20.6743, 11.7716, 30.4554)
Luminance0.1177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D3397 #339D39
analogous
#6E339D #9D3397 #9D3362
triadic
#9D3397 #979D33 #33979D
tetradic
#9D3397 #9D6E33 #339D39 #33629D
square
#9D3397 #9D6E33 #339D39 #33629D
split-complementary
#9D3397 #629D33 #339D6E
monochromatic
#41153E #6F246B #9D3397 #C449BD #D377CE

Accessibility & contrast

On white

6.26
#9D3397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9D3397 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D3397
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D3397#FFFFFF#000000##FFFFFF
##9D33971.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#516594
Tritanopia (blue-blind)
#A33F61
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9d3397;
/* rgb */ color: rgb(157, 51, 151);
/* oklch */ color: oklch(51.4% 0.182 330.2);
Tailwind
colors: {
  custom: {
    50: '#bd74b6',
    500: '#9d3397',
    950: '#000000',
  },
}
SCSS
$custom: #9d3397;
$custom-light: #bd74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d3397",
  "rgb": {
    "r": 157,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 303.396,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.51382,
    "c": 0.18169,
    "h": 330.2
  },
  "luminance": 0.1177
}

Semantic roles & 50–950 ramp

primary
#9D3397
secondary
#70BB75
accent
#DA554D
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9D3397

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

Preview Lab → · Contrast checker → · Palette generator →

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