#9B3186#9B3186

#9B3186 is a mid, vivid pink. Relative luminance 0.109; OKLCH L 50.0% C 0.170 H 336.7°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#9B3186
RGBrgb(155, 49, 134)
HSLhsl(312, 52%, 40%)
HSVhsv(312, 68%, 61%)
CMYKcmyk(0%, 68.4%, 13.5%, 39.2%)
CIE-LABlab(39.39, 53.18, -24.73)
CIE-LCHlch(39.39, 58.65, 335.06°)
OKLaboklab(49.98% 0.1561 -0.0672)
OKLCHoklch(49.98% 0.17 336.7)
XYZxyz(18.9192, 10.8881, 23.6548)
Luminance0.1089 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B3186 #319B46
analogous
#7B319B #9B3186 #9B3151
triadic
#9B3186 #869B31 #31869B
tetradic
#9B3186 #9B7B31 #319B46 #31519B
square
#9B3186 #9B7B31 #319B46 #31519B
split-complementary
#9B3186 #519B31 #319B7B
monochromatic
#3E1436 #6D225E #9B3186 #C445AB #D373C0

Accessibility & contrast

On white

6.61
#9B3186 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9B3186 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B3186
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B3186#FFFFFF#000000##FFFFFF
##9B31861.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335288
Deuteranopia (green-blind)
#566383
Tritanopia (blue-blind)
#A33757
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9b3186;
/* rgb */ color: rgb(155, 49, 134);
/* oklch */ color: oklch(50.0% 0.170 336.7);
Tailwind
colors: {
  custom: {
    50: '#bc72a9',
    500: '#9b3186',
    950: '#000000',
  },
}
SCSS
$custom: #9b3186;
$custom-light: #bc72a9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b3186",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 134
  },
  "hsl": {
    "h": 311.887,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.49984,
    "c": 0.16994,
    "h": 336.7
  },
  "luminance": 0.10886
}

Semantic roles & 50–950 ramp

primary
#9B3186
secondary
#6DBB7C
accent
#DB694C
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B3186

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

Preview Lab → · Contrast checker → · Palette generator →

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