#9C2BAB#9C2BAB

#9C2BAB is a mid, highly saturated purple. Relative luminance 0.117; OKLCH L 51.7% C 0.207 H 322.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9C2BAB
RGBrgb(156, 43, 171)
HSLhsl(293, 60%, 42%)
HSVhsv(293, 75%, 67%)
CMYKcmyk(8.8%, 74.9%, 0%, 32.9%)
CIE-LABlab(40.80, 61.83, -44.87)
CIE-LCHlch(40.80, 76.40, 324.03°)
OKLaboklab(51.68% 0.1647 -0.1254)
OKLCHoklch(51.68% 0.207 322.7)
XYZxyz(21.9241, 11.7372, 39.6309)
Luminance0.1174 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2BAB #3AAB2B
analogous
#5C2BAB #9C2BAB #AB2B7A
triadic
#9C2BAB #AB9C2B #2BAB9C
tetradic
#9C2BAB #AB5C2B #3AAB2B #2B7AAB
square
#9C2BAB #AB5C2B #3AAB2B #2B7AAB
split-complementary
#9C2BAB #7AAB2B #2BAB5C
monochromatic
#431249 #6F1F7A #9C2BAB #BF43D0 #D074DC

Accessibility & contrast

On white

6.27
#9C2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#9C2BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2BAB
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2BAB#FFFFFF#000000##FFFFFF
##9C2BAB1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#3F64A8
Tritanopia (blue-blind)
#9E4369
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9c2bab;
/* rgb */ color: rgb(156, 43, 171);
/* oklch */ color: oklch(51.7% 0.207 322.7);
Tailwind
colors: {
  custom: {
    50: '#bd71c5',
    500: '#9c2bab',
    950: '#000000',
  },
}
SCSS
$custom: #9c2bab;
$custom-light: #bd71c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2bab",
  "rgb": {
    "r": 156,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 292.969,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51677,
    "c": 0.20701,
    "h": 322.7
  },
  "luminance": 0.11736
}

Semantic roles & 50–950 ramp

primary
#9C2BAB
secondary
#78C46E
accent
#E34557
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9C2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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