#5B36BA#5B36BA

#5B36BA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.194 H 289.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5B36BA
RGBrgb(91, 54, 186)
HSLhsl(257, 55%, 47%)
HSVhsv(257, 71%, 73%)
CMYKcmyk(51.1%, 71%, 0%, 27.1%)
CIE-LABlab(34.82, 48.09, -63.86)
CIE-LCHlch(34.82, 79.94, 306.98°)
OKLaboklab(45.92% 0.0641 -0.1834)
OKLCHoklch(45.92% 0.194 289.3)
XYZxyz(14.4939, 8.4070, 47.3039)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36BA #95BA36
analogous
#3653BA #5B36BA #9D36BA
triadic
#5B36BA #BA5B36 #36BA5B
tetradic
#5B36BA #BA3653 #95BA36 #36BA9D
square
#5B36BA #BA3653 #95BA36 #36BA9D
split-complementary
#5B36BA #BA9D36 #53BA36
monochromatic
#2D1A5B #44288B #5B36BA #7D5DD0 #A38DDE

Accessibility & contrast

On white

7.83
#5B36BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5B36BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36BA
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36BA#FFFFFF#000000##FFFFFF
##5B36BA1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#395874
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b36ba;
/* rgb */ color: rgb(91, 54, 186);
/* oklch */ color: oklch(45.9% 0.194 289.3);
Tailwind
colors: {
  custom: {
    50: '#9270d0',
    500: '#5b36ba',
    950: '#000000',
  },
}
SCSS
$custom: #5b36ba;
$custom-light: #9270d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36ba",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 256.818,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45924,
    "c": 0.19426,
    "h": 289.3
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#5B36BA
secondary
#B5C884
accent
#DE49B5
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B36BA

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

Preview Lab → · Contrast checker → · Palette generator →

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