#9B3199#9B3199

#9B3199 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.185 H 328.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9B3199
RGBrgb(155, 49, 153)
HSLhsl(301, 52%, 40%)
HSVhsv(301, 68%, 61%)
CMYKcmyk(0%, 68.4%, 1.3%, 39.2%)
CIE-LABlab(40.36, 56.28, -34.79)
CIE-LCHlch(40.36, 66.17, 328.28°)
OKLaboklab(51% 0.1578 -0.0961)
OKLCHoklch(51% 0.185 328.7)
XYZxyz(20.3654, 11.4665, 31.2714)
Luminance0.1147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B3199 #319B33
analogous
#68319B #9B3199 #9B3164
triadic
#9B3199 #999B31 #31999B
tetradic
#9B3199 #9B6831 #319B33 #31649B
square
#9B3199 #9B6831 #319B33 #31649B
split-complementary
#9B3199 #649B31 #319B68
monochromatic
#3E143D #6D226B #9B3199 #C445C2 #D373D1

Accessibility & contrast

On white

6.38
#9B3199 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#9B3199 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B3199
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B3199#FFFFFF#000000##FFFFFF
##9B31991.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23569C
Deuteranopia (green-blind)
#4D6496
Tritanopia (blue-blind)
#A03F61
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9b3199;
/* rgb */ color: rgb(155, 49, 153);
/* oklch */ color: oklch(51.0% 0.185 328.7);
Tailwind
colors: {
  custom: {
    50: '#bc72b7',
    500: '#9b3199',
    950: '#000000',
  },
}
SCSS
$custom: #9b3199;
$custom-light: #bc72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#9b3199",
  "rgb": {
    "r": 155,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 301.132,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.50995,
    "c": 0.18477,
    "h": 328.7
  },
  "luminance": 0.11465
}

Semantic roles & 50–950 ramp

primary
#9B3199
secondary
#6DBB6E
accent
#DB4F4C
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9B3199

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

Preview Lab → · Contrast checker → · Palette generator →

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