#9B398E#9B398E

#9B398E is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.3% C 0.165 H 333.3°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#9B398E
RGBrgb(155, 57, 142)
HSLhsl(308, 46%, 42%)
HSVhsv(308, 63%, 61%)
CMYKcmyk(0%, 63.2%, 8.4%, 39.2%)
CIE-LABlab(40.98, 51.13, -27.15)
CIE-LCHlch(40.98, 57.89, 332.03°)
OKLaboklab(51.26% 0.1474 -0.0742)
OKLCHoklch(51.26% 0.165 333.3)
XYZxyz(19.8632, 11.8493, 26.8269)
Luminance0.1185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B398E #399B46
analogous
#77399B #9B398E #9B395D
triadic
#9B398E #8E9B39 #398E9B
tetradic
#9B398E #9B7739 #399B46 #395D9B
square
#9B398E #9B7739 #399B46 #395D9B
split-complementary
#9B398E #5D9B39 #399B77
monochromatic
#42183C #6E2965 #9B398E #BF52B1 #D07FC5

Accessibility & contrast

On white

6.23
#9B398E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#9B398E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B398E
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B398E#FFFFFF#000000##FFFFFF
##9B398E1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375891
Deuteranopia (green-blind)
#56668B
Tritanopia (blue-blind)
#A2415E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9b398e;
/* rgb */ color: rgb(155, 57, 142);
/* oklch */ color: oklch(51.3% 0.165 333.3);
Tailwind
colors: {
  custom: {
    50: '#bb76af',
    500: '#9b398e',
    950: '#000000',
  },
}
SCSS
$custom: #9b398e;
$custom-light: #bb76af;
$custom-dark: #000000;
JSON
{
  "hex": "#9b398e",
  "rgb": {
    "r": 155,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 307.959,
    "s": 46.226,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51263,
    "c": 0.16497,
    "h": 333.3
  },
  "luminance": 0.11848
}

Semantic roles & 50–950 ramp

primary
#9B398E
secondary
#77B97F
accent
#D66352
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120910
muted
#817B7F

Preview Lab

Preview with #9B398E

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

Preview Lab → · Contrast checker → · Palette generator →

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