#9B4DC7#9B4DC7

#9B4DC7 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 57.0% C 0.189 H 311.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9B4DC7
RGBrgb(155, 77, 199)
HSLhsl(278, 52%, 54%)
HSVhsv(278, 61%, 78%)
CMYKcmyk(22.1%, 61.3%, 0%, 22%)
CIE-LABlab(47.50, 52.87, -50.57)
CIE-LCHlch(47.50, 73.16, 316.27°)
OKLaboklab(57.01% 0.1251 -0.1423)
OKLCHoklch(57.01% 0.189 311.3)
XYZxyz(26.4784, 16.4004, 55.7925)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B4DC7 #79C74D
analogous
#5E4DC7 #9B4DC7 #C74DB6
triadic
#9B4DC7 #C79B4D #4DC79B
tetradic
#9B4DC7 #C75E4D #79C74D #4DB6C7
square
#9B4DC7 #C75E4D #79C74D #4DB6C7
split-complementary
#9B4DC7 #B6C74D #4DC75E
monochromatic
#582575 #7B33A3 #9B4DC7 #B57CD6 #CFAAE4

Accessibility & contrast

On white

4.91
#9B4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9B4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B4DC7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B4DC7#FFFFFF#000000##FFFFFF
##9B4DC71.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCB
Deuteranopia (green-blind)
#4272C4
Tritanopia (blue-blind)
#966483
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9b4dc7;
/* rgb */ color: rgb(155, 77, 199);
/* oklch */ color: oklch(57.0% 0.189 311.3);
Tailwind
colors: {
  custom: {
    50: '#bc83d9',
    500: '#9b4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #9b4dc7;
$custom-light: #bc83d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9b4dc7",
  "rgb": {
    "r": 155,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 278.361,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57011,
    "c": 0.18944,
    "h": 311.3
  },
  "luminance": 0.164
}

Semantic roles & 50–950 ramp

primary
#9B4DC7
secondary
#B1D29E
accent
#DC4C80
background
#FBF8FD
surface
#F7EFFA
border
#D0CAD3
text
#120B15
muted
#817C83

Preview Lab

Preview with #9B4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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