#9B59EB#9B59EB

#9B59EB is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.0% C 0.212 H 301.1°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9B59EB
RGBrgb(155, 89, 235)
HSLhsl(267, 78%, 64%)
HSVhsv(267, 62%, 92%)
CMYKcmyk(34%, 62.1%, 0%, 7.8%)
CIE-LABlab(51.96, 55.19, -63.87)
CIE-LCHlch(51.96, 84.41, 310.83°)
OKLaboklab(60.97% 0.1095 -0.1814)
OKLCHoklch(60.97% 0.212 301.1)
XYZxyz(32.0818, 20.1113, 80.7728)
Luminance0.2011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B59EB #A9EB59
analogous
#5960EB #9B59EB #E459EB
triadic
#9B59EB #EB9B59 #59EB9B
tetradic
#9B59EB #EB5960 #A9EB59 #59EBE4
square
#9B59EB #EB5960 #A9EB59 #59EBE4
split-complementary
#9B59EB #EBE459 #60EB59
monochromatic
#5D16B4 #7A22E4 #9B59EB #BC90F2 #DDC6F8

Accessibility & contrast

On white

4.18
#9B59EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#9B59EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B59EB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B59EB#FFFFFF#000000##000000
##9B59EB1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#237BE8
Tritanopia (blue-blind)
#8A799A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9b59eb;
/* rgb */ color: rgb(155, 89, 235);
/* oklch */ color: oklch(61.0% 0.212 301.1);
Tailwind
colors: {
  custom: {
    50: '#bd8bf2',
    500: '#9b59eb',
    950: '#000000',
  },
}
SCSS
$custom: #9b59eb;
$custom-light: #bd8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b59eb",
  "rgb": {
    "r": 155,
    "g": 89,
    "b": 235
  },
  "hsl": {
    "h": 267.123,
    "s": 78.495,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60971,
    "c": 0.21188,
    "h": 301.1
  },
  "luminance": 0.20111
}

Semantic roles & 50–950 ramp

primary
#9B59EB
secondary
#D2EAB6
accent
#DB0B7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B59EB

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

Preview Lab → · Contrast checker → · Palette generator →

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