#5B37BC#5B37BC

#5B37BC is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.195 H 288.8°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5B37BC
RGBrgb(91, 55, 188)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 74%)
CMYKcmyk(51.6%, 70.7%, 0%, 26.3%)
CIE-LABlab(35.18, 48.14, -64.45)
CIE-LCHlch(35.18, 80.44, 306.75°)
OKLaboklab(46.23% 0.0628 -0.1851)
OKLCHoklch(46.23% 0.195 288.8)
XYZxyz(14.7550, 8.5867, 48.4471)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37BC #98BC37
analogous
#3755BC #5B37BC #9E37BC
triadic
#5B37BC #BC5B37 #37BC5B
tetradic
#5B37BC #BC3755 #98BC37 #37BC9E
square
#5B37BC #BC3755 #98BC37 #37BC9E
split-complementary
#5B37BC #BC9E37 #55BC37
monochromatic
#2D1B5D #44298D #5B37BC #7E60D0 #A58FDE

Accessibility & contrast

On white

7.73
#5B37BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5B37BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37BC
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37BC#FFFFFF#000000##FFFFFF
##5B37BC1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#375A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b37bc;
/* rgb */ color: rgb(91, 55, 188);
/* oklch */ color: oklch(46.2% 0.195 288.8);
Tailwind
colors: {
  custom: {
    50: '#9371d1',
    500: '#5b37bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b37bc;
$custom-light: #9371d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37bc",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 256.241,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46233,
    "c": 0.19548,
    "h": 288.8
  },
  "luminance": 0.08587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B37BC

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

Preview Lab → · Contrast checker → · Palette generator →

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