#5B36BB#5B36BB

#5B36BB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.195 H 289.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5B36BB
RGBrgb(91, 54, 187)
HSLhsl(257, 55%, 47%)
HSVhsv(257, 71%, 73%)
CMYKcmyk(51.3%, 71.1%, 0%, 26.7%)
CIE-LABlab(34.90, 48.37, -64.31)
CIE-LCHlch(34.90, 80.47, 306.95°)
OKLaboklab(46.01% 0.0639 -0.1847)
OKLCHoklch(46.01% 0.195 289.1)
XYZxyz(14.6006, 8.4497, 47.8657)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36BB #96BB36
analogous
#3653BB #5B36BB #9E36BB
triadic
#5B36BB #BB5B36 #36BB5B
tetradic
#5B36BB #BB3653 #96BB36 #36BB9E
square
#5B36BB #BB3653 #96BB36 #36BB9E
split-complementary
#5B36BB #BB9E36 #53BB36
monochromatic
#2D1B5C #44288C #5B36BB #7E5ED0 #A48DDE

Accessibility & contrast

On white

7.81
#5B36BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5B36BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36BB
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36BB#FFFFFF#000000##FFFFFF
##5B36BB1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#385975
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b36bb;
/* rgb */ color: rgb(91, 54, 187);
/* oklch */ color: oklch(46.0% 0.195 289.1);
Tailwind
colors: {
  custom: {
    50: '#9370d1',
    500: '#5b36bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b36bb;
$custom-light: #9370d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36bb",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 187
  },
  "hsl": {
    "h": 256.692,
    "s": 55.187,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46011,
    "c": 0.19544,
    "h": 289.1
  },
  "luminance": 0.0845
}

Semantic roles & 50–950 ramp

primary
#5B36BB
secondary
#B6C984
accent
#DF49B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B36BB

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

Preview Lab → · Contrast checker → · Palette generator →

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