#9C2796#9C2796

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

Color values

HEX#9C2796
RGBrgb(156, 39, 150)
HSLhsl(303, 60%, 38%)
HSVhsv(303, 75%, 61%)
CMYKcmyk(0%, 75%, 3.8%, 38.8%)
CIE-LABlab(39.11, 59.56, -34.93)
CIE-LCHlch(39.11, 69.05, 329.61°)
OKLaboklab(50.08% 0.1689 -0.0964)
OKLCHoklch(50.08% 0.195 330.3)
XYZxyz(19.9408, 10.7225, 29.8677)
Luminance0.1072 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2796 #279C2D
analogous
#67279C #9C2796 #9C275B
triadic
#9C2796 #969C27 #27969C
tetradic
#9C2796 #9C6727 #279C2D #275B9C
square
#9C2796 #9C6727 #279C2D #275B9C
split-complementary
#9C2796 #5B9C27 #279C67
monochromatic
#3A0F38 #6B1B67 #9C2796 #CC34C4 #D865D3

Accessibility & contrast

On white

6.68
#9C2796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9C2796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2796
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2796#FFFFFF#000000##FFFFFF
##9C27961.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195299
Deuteranopia (green-blind)
#4B6293
Tritanopia (blue-blind)
#A2375D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9c2796;
/* rgb */ color: rgb(156, 39, 150);
/* oklch */ color: oklch(50.1% 0.195 330.3);
Tailwind
colors: {
  custom: {
    50: '#bd6eb5',
    500: '#9c2796',
    950: '#000000',
  },
}
SCSS
$custom: #9c2796;
$custom-light: #bd6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2796",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 303.077,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.50079,
    "c": 0.19452,
    "h": 330.3
  },
  "luminance": 0.10721
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C2796

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

Preview Lab → · Contrast checker → · Palette generator →

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