#9B2BAB#9B2BAB

#9B2BAB is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.5% C 0.207 H 322.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#9B2BAB
RGBrgb(155, 43, 171)
HSLhsl(293, 60%, 42%)
HSVhsv(293, 75%, 67%)
CMYKcmyk(9.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(40.63, 61.63, -45.14)
CIE-LCHlch(40.63, 76.39, 323.78°)
OKLaboklab(51.53% 0.1636 -0.1262)
OKLCHoklch(51.53% 0.207 322.3)
XYZxyz(21.7314, 11.6378, 39.6219)
Luminance0.1164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2BAB #3BAB2B
analogous
#5B2BAB #9B2BAB #AB2B7B
triadic
#9B2BAB #AB9B2B #2BAB9B
tetradic
#9B2BAB #AB5B2B #3BAB2B #2B7BAB
square
#9B2BAB #AB5B2B #3BAB2B #2B7BAB
split-complementary
#9B2BAB #7BAB2B #2BAB5B
monochromatic
#421249 #6F1F7A #9B2BAB #BE43D0 #CF74DC

Accessibility & contrast

On white

6.31
#9B2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#9B2BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2BAB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2BAB#FFFFFF#000000##FFFFFF
##9B2BAB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#3E64A8
Tritanopia (blue-blind)
#9D4369
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b2bab;
/* rgb */ color: rgb(155, 43, 171);
/* oklch */ color: oklch(51.5% 0.207 322.3);
Tailwind
colors: {
  custom: {
    50: '#bc70c5',
    500: '#9b2bab',
    950: '#000000',
  },
}
SCSS
$custom: #9b2bab;
$custom-light: #bc70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2bab",
  "rgb": {
    "r": 155,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 292.5,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51532,
    "c": 0.20657,
    "h": 322.3
  },
  "luminance": 0.11637
}

Semantic roles & 50–950 ramp

primary
#9B2BAB
secondary
#79C46E
accent
#E34559
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120813
muted
#817B82

Preview Lab

Preview with #9B2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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