#9B59CB#9B59CB

#9B59CB is a mid, vivid violet. Relative luminance 0.184; OKLCH L 58.9% C 0.176 H 308.7°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9B59CB
RGBrgb(155, 89, 203)
HSLhsl(275, 52%, 57%)
HSVhsv(275, 56%, 80%)
CMYKcmyk(23.6%, 56.2%, 0%, 20.4%)
CIE-LABlab(50.01, 47.65, -48.85)
CIE-LCHlch(50.01, 68.24, 314.28°)
OKLaboklab(58.92% 0.11 -0.1373)
OKLCHoklch(58.92% 0.176 308.7)
XYZxyz(27.8673, 18.4255, 58.5768)
Luminance0.1842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B59CB #89CB59
analogous
#6259CB #9B59CB #CB59C2
triadic
#9B59CB #CB9B59 #59CB9B
tetradic
#9B59CB #CB6259 #89CB59 #59C2CB
square
#9B59CB #CB6259 #89CB59 #59C2CB
split-complementary
#9B59CB #C2CB59 #59CB62
monochromatic
#5C2881 #7D37B0 #9B59CB #B788DA #D3B6E8

Accessibility & contrast

On white

4.48
#9B59CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#9B59CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B59CB
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B59CB#FFFFFF#000000##000000
##9B59CB1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3374CF
Deuteranopia (green-blind)
#4B78C8
Tritanopia (blue-blind)
#946E89
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9b59cb;
/* rgb */ color: rgb(155, 89, 203);
/* oklch */ color: oklch(58.9% 0.176 308.7);
Tailwind
colors: {
  custom: {
    50: '#bb8adb',
    500: '#9b59cb',
    950: '#000000',
  },
}
SCSS
$custom: #9b59cb;
$custom-light: #bb8adb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b59cb",
  "rgb": {
    "r": 155,
    "g": 89,
    "b": 203
  },
  "hsl": {
    "h": 274.737,
    "s": 52.294,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5892,
    "c": 0.17594,
    "h": 308.7
  },
  "luminance": 0.18425
}

Semantic roles & 50–950 ramp

primary
#9B59CB
secondary
#BCD7A9
accent
#DC4C89
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9B59CB

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

Preview Lab → · Contrast checker → · Palette generator →

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