#9B398B#9B398B

#9B398B is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.1% C 0.163 H 334.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#9B398B
RGBrgb(155, 57, 139)
HSLhsl(310, 46%, 42%)
HSVhsv(310, 63%, 61%)
CMYKcmyk(0%, 63.2%, 10.3%, 39.2%)
CIE-LABlab(40.83, 50.64, -25.54)
CIE-LCHlch(40.83, 56.71, 333.23°)
OKLaboklab(51.11% 0.1469 -0.0696)
OKLCHoklch(51.11% 0.163 334.7)
XYZxyz(19.6410, 11.7604, 25.6566)
Luminance0.1176 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B398B #399B49
analogous
#7A399B #9B398B #9B395A
triadic
#9B398B #8B9B39 #398B9B
tetradic
#9B398B #9B7A39 #399B49 #395A9B
square
#9B398B #9B7A39 #399B49 #395A9B
split-complementary
#9B398B #5A9B39 #399B7A
monochromatic
#42183B #6E2963 #9B398B #BF52AD #D07FC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B398B#FFFFFF#000000##FFFFFF
##9B398B1.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)
#38578D
Deuteranopia (green-blind)
#586688
Tritanopia (blue-blind)
#A2405D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b398b;
/* rgb */ color: rgb(155, 57, 139);
/* oklch */ color: oklch(51.1% 0.163 334.7);
Tailwind
colors: {
  custom: {
    50: '#bb76ad',
    500: '#9b398b',
    950: '#000000',
  },
}
SCSS
$custom: #9b398b;
$custom-light: #bb76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9b398b",
  "rgb": {
    "r": 155,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 309.796,
    "s": 46.226,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.16258,
    "h": 334.7
  },
  "luminance": 0.11759
}

Semantic roles & 50–950 ramp

primary
#9B398B
secondary
#77B981
accent
#D66752
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9B398B

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

Preview Lab → · Contrast checker → · Palette generator →

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