#5B36C5#5B36C5

#5B36C5 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.207 H 287.4°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5B36C5
RGBrgb(91, 54, 197)
HSLhsl(256, 57%, 49%)
HSVhsv(256, 73%, 77%)
CMYKcmyk(53.8%, 72.6%, 0%, 22.7%)
CIE-LABlab(35.78, 51.21, -68.75)
CIE-LCHlch(35.78, 85.73, 306.68°)
OKLaboklab(46.9% 0.0618 -0.1977)
OKLCHoklch(46.9% 0.207 287.4)
XYZxyz(15.7086, 8.8929, 53.7013)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36C5 #A0C536
analogous
#3659C5 #5B36C5 #A236C5
triadic
#5B36C5 #C55B36 #36C55B
tetradic
#5B36C5 #C53659 #A0C536 #36C5A2
square
#5B36C5 #C53659 #A0C536 #36C5A2
split-complementary
#5B36C5 #C5A236 #59C536
monochromatic
#2F1C65 #452995 #5B36C5 #8164D4 #A894E2

Accessibility & contrast

On white

7.56
#5B36C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5B36C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36C5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36C5#FFFFFF#000000##FFFFFF
##5B36C51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#2F5D7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b36c5;
/* rgb */ color: rgb(91, 54, 197);
/* oklch */ color: oklch(46.9% 0.207 287.4);
Tailwind
colors: {
  custom: {
    50: '#9471d8',
    500: '#5b36c5',
    950: '#000000',
  },
}
SCSS
$custom: #5b36c5;
$custom-light: #9471d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36c5",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 197
  },
  "hsl": {
    "h": 255.524,
    "s": 56.972,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46901,
    "c": 0.20712,
    "h": 287.4
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#5B36C5
secondary
#BBCD8A
accent
#E048B9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B36C5

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

Preview Lab → · Contrast checker → · Palette generator →

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