#9C2D97#9C2D97

#9C2D97 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.189 H 329.9°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#9C2D97
RGBrgb(156, 45, 151)
HSLhsl(303, 55%, 39%)
HSVhsv(303, 71%, 61%)
CMYKcmyk(0%, 71.2%, 3.2%, 38.8%)
CIE-LABlab(39.88, 57.68, -34.32)
CIE-LCHlch(39.88, 67.11, 329.25°)
OKLaboklab(50.65% 0.1631 -0.0947)
OKLCHoklch(50.65% 0.189 329.9)
XYZxyz(20.2345, 11.1806, 30.3645)
Luminance0.1118 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2D97 #2D9C32
analogous
#6A2D9C #9C2D97 #9C2D60
triadic
#9C2D97 #979C2D #2D979C
tetradic
#9C2D97 #9C6A2D #2D9C32 #2D609C
square
#9C2D97 #9C6A2D #2D9C32 #2D609C
split-complementary
#9C2D97 #609C2D #2D9C6A
monochromatic
#3D123B #6D1F69 #9C2D97 #C83FC1 #D56ED1

Accessibility & contrast

On white

6.49
#9C2D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#9C2D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2D97
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2D97#FFFFFF#000000##FFFFFF
##9C2D971.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21549A
Deuteranopia (green-blind)
#4D6394
Tritanopia (blue-blind)
#A23B5F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9c2d97;
/* rgb */ color: rgb(156, 45, 151);
/* oklch */ color: oklch(50.7% 0.189 329.9);
Tailwind
colors: {
  custom: {
    50: '#bd71b6',
    500: '#9c2d97',
    950: '#000000',
  },
}
SCSS
$custom: #9c2d97;
$custom-light: #bd71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2d97",
  "rgb": {
    "r": 156,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 302.703,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.50652,
    "c": 0.18858,
    "h": 329.9
  },
  "luminance": 0.11179
}

Semantic roles & 50–950 ramp

primary
#9C2D97
secondary
#68BC6C
accent
#DF5049
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9C2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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