#9B398D#9B398D

#9B398D is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.2% C 0.164 H 333.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#9B398D
RGBrgb(155, 57, 141)
HSLhsl(309, 46%, 42%)
HSVhsv(309, 63%, 61%)
CMYKcmyk(0%, 63.2%, 9%, 39.2%)
CIE-LABlab(40.93, 50.97, -26.61)
CIE-LCHlch(40.93, 57.50, 332.43°)
OKLaboklab(51.21% 0.1472 -0.0726)
OKLCHoklch(51.21% 0.164 333.7)
XYZxyz(19.7885, 11.8194, 26.4333)
Luminance0.1182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B398D #399B47
analogous
#78399B #9B398D #9B395C
triadic
#9B398D #8D9B39 #398D9B
tetradic
#9B398D #9B7839 #399B47 #395C9B
square
#9B398D #9B7839 #399B47 #395C9B
split-complementary
#9B398D #5C9B39 #399B78
monochromatic
#42183C #6E2964 #9B398D #BF52B0 #D07FC4

Accessibility & contrast

On white

6.24
#9B398D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#9B398D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B398D
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B398D#FFFFFF#000000##FFFFFF
##9B398D1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375790
Deuteranopia (green-blind)
#57668A
Tritanopia (blue-blind)
#A2405E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #9b398d;
/* rgb */ color: rgb(155, 57, 141);
/* oklch */ color: oklch(51.2% 0.164 333.7);
Tailwind
colors: {
  custom: {
    50: '#bb76ae',
    500: '#9b398d',
    950: '#000000',
  },
}
SCSS
$custom: #9b398d;
$custom-light: #bb76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9b398d",
  "rgb": {
    "r": 155,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 308.571,
    "s": 46.226,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51212,
    "c": 0.16417,
    "h": 333.7
  },
  "luminance": 0.11818
}

Semantic roles & 50–950 ramp

primary
#9B398D
secondary
#77B980
accent
#D66552
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9B398D

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

Preview Lab → · Contrast checker → · Palette generator →

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