#9C2798#9C2798

#9C2798 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.2% C 0.196 H 329.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#9C2798
RGBrgb(156, 39, 152)
HSLhsl(302, 60%, 38%)
HSVhsv(302, 75%, 61%)
CMYKcmyk(0%, 75%, 2.6%, 38.8%)
CIE-LABlab(39.22, 59.89, -35.97)
CIE-LCHlch(39.22, 69.86, 329.01°)
OKLaboklab(50.2% 0.169 -0.0994)
OKLCHoklch(50.2% 0.196 329.5)
XYZxyz(20.1032, 10.7875, 30.7231)
Luminance0.1079 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2798 #279C2B
analogous
#65279C #9C2798 #9C275D
triadic
#9C2798 #989C27 #27989C
tetradic
#9C2798 #9C6527 #279C2B #275D9C
square
#9C2798 #9C6527 #279C2B #275D9C
split-complementary
#9C2798 #5D9C27 #279C65
monochromatic
#3A0F39 #6B1B68 #9C2798 #CC34C7 #D865D5

Accessibility & contrast

On white

6.65
#9C2798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9C2798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2798
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2798#FFFFFF#000000##FFFFFF
##9C27981.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529B
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#A2385E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9c2798;
/* rgb */ color: rgb(156, 39, 152);
/* oklch */ color: oklch(50.2% 0.196 329.5);
Tailwind
colors: {
  custom: {
    50: '#bd6eb7',
    500: '#9c2798',
    950: '#000000',
  },
}
SCSS
$custom: #9c2798;
$custom-light: #bd6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2798",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 302.051,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50195,
    "c": 0.19605,
    "h": 329.5
  },
  "luminance": 0.10786
}

Semantic roles & 50–950 ramp

primary
#9C2798
secondary
#61BE64
accent
#E34A45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9C2798

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

Preview Lab → · Contrast checker → · Palette generator →

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