#5B36C7#5B36C7

#5B36C7 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.209 H 287.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5B36C7
RGBrgb(91, 54, 199)
HSLhsl(255, 57%, 50%)
HSVhsv(255, 73%, 78%)
CMYKcmyk(54.3%, 72.9%, 0%, 22%)
CIE-LABlab(35.96, 51.78, -69.62)
CIE-LCHlch(35.96, 86.77, 306.64°)
OKLaboklab(47.08% 0.0614 -0.2003)
OKLCHoklch(47.08% 0.209 287)
XYZxyz(15.9393, 8.9852, 54.9162)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36C7 #A2C736
analogous
#365AC7 #5B36C7 #A336C7
triadic
#5B36C7 #C75B36 #36C75B
tetradic
#5B36C7 #C7365A #A2C736 #36C7A3
square
#5B36C7 #C7365A #A2C736 #36C7A3
split-complementary
#5B36C7 #C7A336 #5AC736
monochromatic
#2F1C67 #452997 #5B36C7 #8265D5 #A995E2

Accessibility & contrast

On white

7.51
#5B36C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5B36C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36C7
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36C7#FFFFFF#000000##FFFFFF
##5B36C71.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CB
Deuteranopia (green-blind)
#0050C4
Tritanopia (blue-blind)
#2D5D7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b36c7;
/* rgb */ color: rgb(91, 54, 199);
/* oklch */ color: oklch(47.1% 0.209 287.0);
Tailwind
colors: {
  custom: {
    50: '#9471d9',
    500: '#5b36c7',
    950: '#000000',
  },
}
SCSS
$custom: #5b36c7;
$custom-light: #9471d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36c7",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 199
  },
  "hsl": {
    "h": 255.31,
    "s": 57.312,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47081,
    "c": 0.20945,
    "h": 287
  },
  "luminance": 0.08986
}

Semantic roles & 50–950 ramp

primary
#5B36C7
secondary
#BDCE8B
accent
#E147B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B36C7

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

Preview Lab → · Contrast checker → · Palette generator →

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