#5B36D1#5B36D1

#5B36D1 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.221 H 285.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5B36D1
RGBrgb(91, 54, 209)
HSLhsl(254, 63%, 52%)
HSVhsv(254, 74%, 82%)
CMYKcmyk(56.5%, 74.2%, 0%, 18%)
CIE-LABlab(36.86, 54.61, -73.94)
CIE-LCHlch(36.86, 91.92, 306.45°)
OKLaboklab(48% 0.059 -0.2129)
OKLCHoklch(48% 0.221 285.5)
XYZxyz(17.1387, 9.4649, 61.2330)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36D1 #ACD136
analogous
#365FD1 #5B36D1 #A936D1
triadic
#5B36D1 #D15B36 #36D15B
tetradic
#5B36D1 #D1365F #ACD136 #36D1A9
square
#5B36D1 #D1365F #ACD136 #36D1A9
split-complementary
#5B36D1 #D1A936 #5FD136
monochromatic
#2F1A72 #4426A4 #5B36D1 #8468DC #AC9AE8

Accessibility & contrast

On white

7.26
#5B36D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B36D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36D1
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36D1#FFFFFF#000000##FFFFFF
##5B36D11.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD5
Deuteranopia (green-blind)
#0052CE
Tritanopia (blue-blind)
#206181
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b36d1;
/* rgb */ color: rgb(91, 54, 209);
/* oklch */ color: oklch(48.0% 0.221 285.5);
Tailwind
colors: {
  custom: {
    50: '#9671e0',
    500: '#5b36d1',
    950: '#000000',
  },
}
SCSS
$custom: #5b36d1;
$custom-light: #9671e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36d1",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 209
  },
  "hsl": {
    "h": 254.323,
    "s": 62.753,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.22091,
    "h": 285.5
  },
  "luminance": 0.09466
}

Semantic roles & 50–950 ramp

primary
#5B36D1
secondary
#C3D38F
accent
#E642BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B36D1

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

Preview Lab → · Contrast checker → · Palette generator →

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