#9B3B97#9B3B97

#9B3B97 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 52.0% C 0.170 H 329.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9B3B97
RGBrgb(155, 59, 151)
HSLhsl(303, 45%, 42%)
HSVhsv(303, 62%, 61%)
CMYKcmyk(0%, 61.9%, 2.6%, 39.2%)
CIE-LABlab(41.74, 51.79, -31.40)
CIE-LCHlch(41.74, 60.57, 328.77°)
OKLaboklab(51.96% 0.1459 -0.0864)
OKLCHoklch(51.96% 0.17 329.4)
XYZxyz(20.6673, 12.3323, 30.5640)
Luminance0.1233 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B3B97 #3B9B3F
analogous
#6F3B9B #9B3B97 #9B3B67
triadic
#9B3B97 #979B3B #3B979B
tetradic
#9B3B97 #9B6F3B #3B9B3F #3B679B
square
#9B3B97 #9B6F3B #3B9B3F #3B679B
split-complementary
#9B3B97 #679B3B #3B9B6F
monochromatic
#421941 #6F2A6C #9B3B97 #BE55BA #CF81CC

Accessibility & contrast

On white

6.06
#9B3B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9B3B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B3B97
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B3B97#FFFFFF#000000##FFFFFF
##9B3B971.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335A9A
Deuteranopia (green-blind)
#536794
Tritanopia (blue-blind)
#A04663
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9b3b97;
/* rgb */ color: rgb(155, 59, 151);
/* oklch */ color: oklch(52.0% 0.170 329.4);
Tailwind
colors: {
  custom: {
    50: '#bb77b6',
    500: '#9b3b97',
    950: '#000000',
  },
}
SCSS
$custom: #9b3b97;
$custom-light: #bb77b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b3b97",
  "rgb": {
    "r": 155,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 302.5,
    "s": 44.86,
    "l": 41.961
  },
  "oklch": {
    "l": 0.51964,
    "c": 0.16953,
    "h": 329.4
  },
  "luminance": 0.12331
}

Semantic roles & 50–950 ramp

primary
#9B3B97
secondary
#79B97C
accent
#D55953
background
#FBF7FB
surface
#F7EEF6
border
#D0C9D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9B3B97

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

Preview Lab → · Contrast checker → · Palette generator →

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