#9B4E97#9B4E97

#9B4E97 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 54.5% C 0.139 H 329.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#9B4E97
RGBrgb(155, 78, 151)
HSLhsl(303, 33%, 46%)
HSVhsv(303, 50%, 61%)
CMYKcmyk(0%, 49.7%, 2.6%, 39.2%)
CIE-LABlab(45.16, 42.59, -26.06)
CIE-LCHlch(45.16, 49.93, 328.54°)
OKLaboklab(54.47% 0.1197 -0.0712)
OKLCHoklch(54.47% 0.139 329.2)
XYZxyz(21.8276, 14.6530, 30.9508)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B4E97 #4E9B52
analogous
#784E9B #9B4E97 #9B4E70
triadic
#9B4E97 #979B4E #4E979B
tetradic
#9B4E97 #9B784E #4E9B52 #4E709B
square
#9B4E97 #9B784E #4E9B52 #4E709B
split-complementary
#9B4E97 #709B4E #4E9B78
monochromatic
#4A2548 #723A6F #9B4E97 #B76FB3 #CB98C9

Accessibility & contrast

On white

5.34
#9B4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#9B4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B4E97
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B4E97#FFFFFF#000000##FFFFFF
##9B4E971.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496499
Deuteranopia (green-blind)
#5F6F95
Tritanopia (blue-blind)
#A0556B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #9b4e97;
/* rgb */ color: rgb(155, 78, 151);
/* oklch */ color: oklch(54.5% 0.139 329.2);
Tailwind
colors: {
  custom: {
    50: '#ba83b6',
    500: '#9b4e97',
    950: '#000000',
  },
}
SCSS
$custom: #9b4e97;
$custom-light: #ba83b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9b4e97",
  "rgb": {
    "r": 155,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 303.117,
    "s": 33.047,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54474,
    "c": 0.13929,
    "h": 329.2
  },
  "luminance": 0.14652
}

Semantic roles & 50–950 ramp

primary
#9B4E97
secondary
#8DB88F
accent
#C9645F
background
#FBF8FB
surface
#F6EFF6
border
#D0CAD0
text
#120B11
muted
#817C80

Preview Lab

Preview with #9B4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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