#9C3397#9C3397

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

Color values

HEX#9C3397
RGBrgb(156, 51, 151)
HSLhsl(303, 51%, 41%)
HSVhsv(303, 67%, 61%)
CMYKcmyk(0%, 67.3%, 3.2%, 38.8%)
CIE-LABlab(40.69, 55.41, -33.04)
CIE-LCHlch(40.69, 64.51, 329.19°)
OKLaboklab(51.23% 0.1566 -0.0911)
OKLCHoklch(51.23% 0.181 329.8)
XYZxyz(20.4799, 11.6714, 30.4463)
Luminance0.1167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C3397 #339C38
analogous
#6C339C #9C3397 #9C3362
triadic
#9C3397 #979C33 #33979C
tetradic
#9C3397 #9C6C33 #339C38 #33629C
square
#9C3397 #9C6C33 #339C38 #33629C
split-complementary
#9C3397 #629C33 #339C6C
monochromatic
#40153E #6E246A #9C3397 #C349BE #D377CE

Accessibility & contrast

On white

6.30
#9C3397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9C3397
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C3397#FFFFFF#000000##FFFFFF
##9C33971.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#506594
Tritanopia (blue-blind)
#A23F61
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9c3397;
/* rgb */ color: rgb(156, 51, 151);
/* oklch */ color: oklch(51.2% 0.181 329.8);
Tailwind
colors: {
  custom: {
    50: '#bc73b6',
    500: '#9c3397',
    950: '#000000',
  },
}
SCSS
$custom: #9c3397;
$custom-light: #bc73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c3397",
  "rgb": {
    "r": 156,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 302.857,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.51233,
    "c": 0.18113,
    "h": 329.8
  },
  "luminance": 0.1167
}

Semantic roles & 50–950 ramp

primary
#9C3397
secondary
#70BB73
accent
#DA544E
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9C3397

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

Preview Lab → · Contrast checker → · Palette generator →

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