#5B36D7#5B36D7

#5B36D7 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.6% C 0.228 H 284.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5B36D7
RGBrgb(91, 54, 215)
HSLhsl(254, 67%, 53%)
HSVhsv(254, 75%, 84%)
CMYKcmyk(57.7%, 74.9%, 0%, 15.7%)
CIE-LABlab(37.42, 56.31, -76.48)
CIE-LCHlch(37.42, 94.97, 306.36°)
OKLaboklab(48.56% 0.0575 -0.2203)
OKLCHoklch(48.56% 0.228 284.6)
XYZxyz(17.8955, 9.7677, 65.2192)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36D7 #B2D736
analogous
#3661D7 #5B36D7 #AC36D7
triadic
#5B36D7 #D75B36 #36D75B
tetradic
#5B36D7 #D73661 #B2D736 #36D7AC
square
#5B36D7 #D73661 #B2D736 #36D7AC
split-complementary
#5B36D7 #D7AC36 #61D736
monochromatic
#2F187A #4222AD #5B36D7 #8569E1 #AE9CEB

Accessibility & contrast

On white

7.11
#5B36D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5B36D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36D7
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36D7#FFFFFF#000000##FFFFFF
##5B36D71.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDC
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#146484
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b36d7;
/* rgb */ color: rgb(91, 54, 215);
/* oklch */ color: oklch(48.6% 0.228 284.6);
Tailwind
colors: {
  custom: {
    50: '#9771e5',
    500: '#5b36d7',
    950: '#000000',
  },
}
SCSS
$custom: #5b36d7;
$custom-light: #9771e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36d7",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 215
  },
  "hsl": {
    "h": 253.789,
    "s": 66.805,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4856,
    "c": 0.22772,
    "h": 284.6
  },
  "luminance": 0.09769
}

Semantic roles & 50–950 ramp

primary
#5B36D7
secondary
#C7D792
accent
#EA3EC2
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B36D7

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

Preview Lab → · Contrast checker → · Palette generator →

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