#5B39BB#5B39BB

#5B39BB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.192 H 288.6°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5B39BB
RGBrgb(91, 57, 187)
HSLhsl(256, 53%, 48%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(51.3%, 69.5%, 0%, 26.7%)
CIE-LABlab(35.47, 46.79, -63.38)
CIE-LCHlch(35.47, 78.77, 306.44°)
OKLaboklab(46.42% 0.0612 -0.1819)
OKLCHoklch(46.42% 0.192 288.6)
XYZxyz(14.7445, 8.7376, 47.9137)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39BB #99BB39
analogous
#3958BB #5B39BB #9C39BB
triadic
#5B39BB #BB5B39 #39BB5B
tetradic
#5B39BB #BB3958 #99BB39 #39BB9C
square
#5B39BB #BB3958 #99BB39 #39BB9C
split-complementary
#5B39BB #BB9C39 #58BB39
monochromatic
#2D1C5D #442B8C #5B39BB #7F62CF #A591DD

Accessibility & contrast

On white

7.64
#5B39BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5B39BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39BB
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39BB#FFFFFF#000000##FFFFFF
##5B39BB1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#385A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b39bb;
/* rgb */ color: rgb(91, 57, 187);
/* oklch */ color: oklch(46.4% 0.192 288.6);
Tailwind
colors: {
  custom: {
    50: '#9272d0',
    500: '#5b39bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b39bb;
$custom-light: #9272d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39bb",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 255.692,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46419,
    "c": 0.19198,
    "h": 288.6
  },
  "luminance": 0.08738
}

Semantic roles & 50–950 ramp

primary
#5B39BB
secondary
#B7C887
accent
#DD4BB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B39BB

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

Preview Lab → · Contrast checker → · Palette generator →

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