#5B36BD#5B36BD

#5B36BD is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.198 H 288.7°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5B36BD
RGBrgb(91, 54, 189)
HSLhsl(256, 56%, 48%)
HSVhsv(256, 71%, 74%)
CMYKcmyk(51.9%, 71.4%, 0%, 25.9%)
CIE-LABlab(35.07, 48.94, -65.21)
CIE-LCHlch(35.07, 81.53, 306.89°)
OKLaboklab(46.19% 0.0635 -0.1873)
OKLCHoklch(46.19% 0.198 288.7)
XYZxyz(14.8162, 8.5359, 49.0012)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36BD #98BD36
analogous
#3655BD #5B36BD #9E36BD
triadic
#5B36BD #BD5B36 #36BD5B
tetradic
#5B36BD #BD3655 #98BD36 #36BD9E
square
#5B36BD #BD3655 #98BD36 #36BD9E
split-complementary
#5B36BD #BD9E36 #55BD36
monochromatic
#2D1B5E #44288D #5B36BD #7E5FD1 #A58FDF

Accessibility & contrast

On white

7.76
#5B36BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5B36BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36BD
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36BD#FFFFFF#000000##FFFFFF
##5B36BD1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#365A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b36bd;
/* rgb */ color: rgb(91, 54, 189);
/* oklch */ color: oklch(46.2% 0.198 288.7);
Tailwind
colors: {
  custom: {
    50: '#9370d2',
    500: '#5b36bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b36bd;
$custom-light: #9370d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36bd",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 189
  },
  "hsl": {
    "h": 256.444,
    "s": 55.556,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46187,
    "c": 0.19779,
    "h": 288.7
  },
  "luminance": 0.08537
}

Semantic roles & 50–950 ramp

primary
#5B36BD
secondary
#B7C985
accent
#DF49B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B36BD

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

Preview Lab → · Contrast checker → · Palette generator →

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