#5B37BB#5B37BB

#5B37BB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.194 H 288.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5B37BB
RGBrgb(91, 55, 187)
HSLhsl(256, 55%, 47%)
HSVhsv(256, 71%, 73%)
CMYKcmyk(51.3%, 70.6%, 0%, 26.7%)
CIE-LABlab(35.09, 47.85, -64.00)
CIE-LCHlch(35.09, 79.91, 306.78°)
OKLaboklab(46.15% 0.063 -0.1838)
OKLCHoklch(46.15% 0.194 288.9)
XYZxyz(14.6476, 8.5437, 47.8814)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37BB #97BB37
analogous
#3755BB #5B37BB #9D37BB
triadic
#5B37BB #BB5B37 #37BB5B
tetradic
#5B37BB #BB3755 #97BB37 #37BB9D
square
#5B37BB #BB3755 #97BB37 #37BB9D
split-complementary
#5B37BB #BB9D37 #55BB37
monochromatic
#2D1B5C #44298C #5B37BB #7E5FD0 #A48EDE

Accessibility & contrast

On white

7.75
#5B37BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5B37BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37BB
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37BB#FFFFFF#000000##FFFFFF
##5B37BB1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#385975
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b37bb;
/* rgb */ color: rgb(91, 55, 187);
/* oklch */ color: oklch(46.1% 0.194 288.9);
Tailwind
colors: {
  custom: {
    50: '#9271d0',
    500: '#5b37bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b37bb;
$custom-light: #9271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37bb",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 256.364,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46145,
    "c": 0.1943,
    "h": 288.9
  },
  "luminance": 0.08544
}

Semantic roles & 50–950 ramp

primary
#5B37BB
secondary
#B6C985
accent
#DE4AB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B37BB

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

Preview Lab → · Contrast checker → · Palette generator →

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