#5B36C4#5B36C4

#5B36C4 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.206 H 287.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5B36C4
RGBrgb(91, 54, 196)
HSLhsl(256, 57%, 49%)
HSVhsv(256, 72%, 77%)
CMYKcmyk(53.6%, 72.4%, 0%, 23.1%)
CIE-LABlab(35.69, 50.93, -68.31)
CIE-LCHlch(35.69, 85.20, 306.71°)
OKLaboklab(46.81% 0.062 -0.1964)
OKLCHoklch(46.81% 0.206 287.5)
XYZxyz(15.5944, 8.8472, 53.0998)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36C4 #9FC436
analogous
#3658C4 #5B36C4 #A236C4
triadic
#5B36C4 #C45B36 #36C45B
tetradic
#5B36C4 #C43658 #9FC436 #36C4A2
square
#5B36C4 #C43658 #9FC436 #36C4A2
split-complementary
#5B36C4 #C4A236 #58C436
monochromatic
#2E1C64 #452994 #5B36C4 #8163D4 #A793E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B36C4#FFFFFF#000000##FFFFFF
##5B36C41.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)
#0057C8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#305C7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b36c4;
/* rgb */ color: rgb(91, 54, 196);
/* oklch */ color: oklch(46.8% 0.206 287.5);
Tailwind
colors: {
  custom: {
    50: '#9471d7',
    500: '#5b36c4',
    950: '#000000',
  },
}
SCSS
$custom: #5b36c4;
$custom-light: #9471d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36c4",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 196
  },
  "hsl": {
    "h": 255.634,
    "s": 56.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46811,
    "c": 0.20597,
    "h": 287.5
  },
  "luminance": 0.08848
}

Semantic roles & 50–950 ramp

primary
#5B36C4
secondary
#BBCC89
accent
#E048B8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B36C4

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

Preview Lab → · Contrast checker → · Palette generator →

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