#5B3BB9#5B3BB9

#5B3BB9 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.5% C 0.187 H 288.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5B3BB9
RGBrgb(91, 59, 185)
HSLhsl(255, 52%, 48%)
HSVhsv(255, 68%, 73%)
CMYKcmyk(50.8%, 68.1%, 0%, 27.5%)
CIE-LABlab(35.70, 45.12, -61.82)
CIE-LCHlch(35.70, 76.54, 306.13°)
OKLaboklab(46.53% 0.0597 -0.1774)
OKLCHoklch(46.53% 0.187 288.6)
XYZxyz(14.6328, 8.8542, 46.8275)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BB9 #99B93B
analogous
#3B5AB9 #5B3BB9 #9A3BB9
triadic
#5B3BB9 #B95B3B #3BB95B
tetradic
#5B3BB9 #B93B5A #99B93B #3BB99A
square
#5B3BB9 #B93B5A #99B93B #3BB99A
split-complementary
#5B3BB9 #B99A3B #5AB93B
monochromatic
#2D1D5C #442C8B #5B3BB9 #7F64CD #A592DC

Accessibility & contrast

On white

7.58
#5B3BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5B3BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BB9
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BB9#FFFFFF#000000##FFFFFF
##5B3BB91.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#395B75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3bb9;
/* rgb */ color: rgb(91, 59, 185);
/* oklch */ color: oklch(46.5% 0.187 288.6);
Tailwind
colors: {
  custom: {
    50: '#9273cf',
    500: '#5b3bb9',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bb9;
$custom-light: #9273cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bb9",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 185
  },
  "hsl": {
    "h": 255.238,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46531,
    "c": 0.18718,
    "h": 288.6
  },
  "luminance": 0.08855
}

Semantic roles & 50–950 ramp

primary
#5B3BB9
secondary
#B7C788
accent
#DB4DB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3BB9

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

Preview Lab → · Contrast checker → · Palette generator →

#5B3BB9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva