#5B37BE#5B37BE

#5B37BE is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.198 H 288.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5B37BE
RGBrgb(91, 55, 190)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 75%)
CMYKcmyk(52.1%, 71.1%, 0%, 25.5%)
CIE-LABlab(35.35, 48.71, -65.35)
CIE-LCHlch(35.35, 81.50, 306.70°)
OKLaboklab(46.41% 0.0625 -0.1877)
OKLCHoklch(46.41% 0.198 288.4)
XYZxyz(14.9721, 8.6735, 49.5905)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37BE #9ABE37
analogous
#3756BE #5B37BE #9E37BE
triadic
#5B37BE #BE5B37 #37BE5B
tetradic
#5B37BE #BE3756 #9ABE37 #37BE9E
square
#5B37BE #BE3756 #9ABE37 #37BE9E
split-complementary
#5B37BE #BE9E37 #56BE37
monochromatic
#2E1C5F #44298F #5B37BE #7F61D1 #A590DF

Accessibility & contrast

On white

7.68
#5B37BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5B37BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37BE
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37BE#FFFFFF#000000##FFFFFF
##5B37BE1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#365A77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b37be;
/* rgb */ color: rgb(91, 55, 190);
/* oklch */ color: oklch(46.4% 0.198 288.4);
Tailwind
colors: {
  custom: {
    50: '#9371d3',
    500: '#5b37be',
    950: '#000000',
  },
}
SCSS
$custom: #5b37be;
$custom-light: #9371d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37be",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 190
  },
  "hsl": {
    "h": 256,
    "s": 55.102,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46408,
    "c": 0.19784,
    "h": 288.4
  },
  "luminance": 0.08674
}

Semantic roles & 50–950 ramp

primary
#5B37BE
secondary
#B8CA87
accent
#DE49B7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B37BE

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

Preview Lab → · Contrast checker → · Palette generator →

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