#5B37BD#5B37BD

#5B37BD is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.197 H 288.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5B37BD
RGBrgb(91, 55, 189)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 74%)
CMYKcmyk(51.9%, 70.9%, 0%, 25.9%)
CIE-LABlab(35.26, 48.42, -64.90)
CIE-LCHlch(35.26, 80.97, 306.73°)
OKLaboklab(46.32% 0.0627 -0.1864)
OKLCHoklch(46.32% 0.197 288.6)
XYZxyz(14.8632, 8.6300, 49.0168)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37BD #99BD37
analogous
#3756BD #5B37BD #9E37BD
triadic
#5B37BD #BD5B37 #37BD5B
tetradic
#5B37BD #BD3756 #99BD37 #37BD9E
square
#5B37BD #BD3756 #99BD37 #37BD9E
split-complementary
#5B37BD #BD9E37 #56BD37
monochromatic
#2D1B5E #44298E #5B37BD #7F60D1 #A590DF

Accessibility & contrast

On white

7.70
#5B37BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B37BD
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37BD#FFFFFF#000000##FFFFFF
##5B37BD1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#365A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b37bd;
/* rgb */ color: rgb(91, 55, 189);
/* oklch */ color: oklch(46.3% 0.197 288.6);
Tailwind
colors: {
  custom: {
    50: '#9371d2',
    500: '#5b37bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b37bd;
$custom-light: #9371d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37bd",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 189
  },
  "hsl": {
    "h": 256.119,
    "s": 54.918,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4632,
    "c": 0.19667,
    "h": 288.6
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#5B37BD
secondary
#B7C986
accent
#DE4AB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B37BD

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

Preview Lab → · Contrast checker → · Palette generator →

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