#5B37BF#5B37BF

#5B37BF is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.5% C 0.199 H 288.2°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5B37BF
RGBrgb(91, 55, 191)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 75%)
CMYKcmyk(52.4%, 71.2%, 0%, 25.1%)
CIE-LABlab(35.43, 48.99, -65.79)
CIE-LCHlch(35.43, 82.03, 306.67°)
OKLaboklab(46.5% 0.0623 -0.189)
OKLCHoklch(46.5% 0.199 288.2)
XYZxyz(15.0818, 8.7174, 50.1681)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37BF #9BBF37
analogous
#3757BF #5B37BF #9F37BF
triadic
#5B37BF #BF5B37 #37BF5B
tetradic
#5B37BF #BF3757 #9BBF37 #37BF9F
square
#5B37BF #BF3757 #9BBF37 #37BF9F
split-complementary
#5B37BF #BF9F37 #57BF37
monochromatic
#2E1C60 #44298F #5B37BF #7F62D2 #A691DF

Accessibility & contrast

On white

7.65
#5B37BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B37BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37BF
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37BF#FFFFFF#000000##FFFFFF
##5B37BF1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#355B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b37bf;
/* rgb */ color: rgb(91, 55, 191);
/* oklch */ color: oklch(46.5% 0.199 288.2);
Tailwind
colors: {
  custom: {
    50: '#9371d3',
    500: '#5b37bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b37bf;
$custom-light: #9371d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37bf",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 255.882,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46496,
    "c": 0.19903,
    "h": 288.2
  },
  "luminance": 0.08718
}

Semantic roles & 50–950 ramp

primary
#5B37BF
secondary
#B9CA88
accent
#DF49B7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B37BF

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

Preview Lab → · Contrast checker → · Palette generator →

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