#5B36D3#5B36D3

#5B36D3 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.223 H 285.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5B36D3
RGBrgb(91, 54, 211)
HSLhsl(254, 64%, 52%)
HSVhsv(254, 74%, 83%)
CMYKcmyk(56.9%, 74.4%, 0%, 17.3%)
CIE-LABlab(37.05, 55.18, -74.79)
CIE-LCHlch(37.05, 92.94, 306.42°)
OKLaboklab(48.19% 0.0585 -0.2154)
OKLCHoklch(48.19% 0.223 285.2)
XYZxyz(17.3879, 9.5646, 62.5453)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36D3 #AED336
analogous
#3660D3 #5B36D3 #AA36D3
triadic
#5B36D3 #D35B36 #36D35B
tetradic
#5B36D3 #D33660 #AED336 #36D3AA
square
#5B36D3 #D33660 #AED336 #36D3AA
split-complementary
#5B36D3 #D3AA36 #60D336
monochromatic
#2F1A75 #4325A7 #5B36D3 #8468DE #AD9AE9

Accessibility & contrast

On white

7.21
#5B36D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B36D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36D3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36D3#FFFFFF#000000##FFFFFF
##5B36D31.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD7
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#1D6282
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b36d3;
/* rgb */ color: rgb(91, 54, 211);
/* oklch */ color: oklch(48.2% 0.223 285.2);
Tailwind
colors: {
  custom: {
    50: '#9671e2',
    500: '#5b36d3',
    950: '#000000',
  },
}
SCSS
$custom: #5b36d3;
$custom-light: #9671e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36d3",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 254.14,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48185,
    "c": 0.22319,
    "h": 285.2
  },
  "luminance": 0.09566
}

Semantic roles & 50–950 ramp

primary
#5B36D3
secondary
#C5D590
accent
#E741C0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B36D3

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

Preview Lab → · Contrast checker → · Palette generator →

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