#9C2797#9C2797

#9C2797 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.1% C 0.195 H 329.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#9C2797
RGBrgb(156, 39, 151)
HSLhsl(303, 60%, 38%)
HSVhsv(303, 75%, 61%)
CMYKcmyk(0%, 75%, 3.2%, 38.8%)
CIE-LABlab(39.16, 59.72, -35.45)
CIE-LCHlch(39.16, 69.45, 329.31°)
OKLaboklab(50.14% 0.169 -0.0979)
OKLCHoklch(50.14% 0.195 329.9)
XYZxyz(20.0216, 10.7549, 30.2935)
Luminance0.1075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2797 #279C2C
analogous
#66279C #9C2797 #9C275C
triadic
#9C2797 #979C27 #27979C
tetradic
#9C2797 #9C6627 #279C2C #275C9C
square
#9C2797 #9C6627 #279C2C #275C9C
split-complementary
#9C2797 #5C9C27 #279C66
monochromatic
#3A0F38 #6B1B68 #9C2797 #CC34C6 #D865D4

Accessibility & contrast

On white

6.67
#9C2797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9C2797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2797
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2797#FFFFFF#000000##FFFFFF
##9C27971.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17529A
Deuteranopia (green-blind)
#4A6294
Tritanopia (blue-blind)
#A2375D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9c2797;
/* rgb */ color: rgb(156, 39, 151);
/* oklch */ color: oklch(50.1% 0.195 329.9);
Tailwind
colors: {
  custom: {
    50: '#bd6eb6',
    500: '#9c2797',
    950: '#000000',
  },
}
SCSS
$custom: #9c2797;
$custom-light: #bd6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2797",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 302.564,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50137,
    "c": 0.19529,
    "h": 329.9
  },
  "luminance": 0.10753
}

Semantic roles & 50–950 ramp

primary
#9C2797
secondary
#61BE65
accent
#E34B45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9C2797

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

Preview Lab → · Contrast checker → · Palette generator →

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