#5B37C1#5B37C1

#5B37C1 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.201 H 287.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5B37C1
RGBrgb(91, 55, 193)
HSLhsl(256, 56%, 49%)
HSVhsv(256, 72%, 76%)
CMYKcmyk(52.8%, 71.5%, 0%, 24.3%)
CIE-LABlab(35.61, 49.56, -66.68)
CIE-LCHlch(35.61, 83.08, 306.62°)
OKLaboklab(46.67% 0.0618 -0.1916)
OKLCHoklch(46.67% 0.201 287.9)
XYZxyz(15.3034, 8.8060, 51.3351)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37C1 #9DC137
analogous
#3758C1 #5B37C1 #A037C1
triadic
#5B37C1 #C15B37 #37C15B
tetradic
#5B37C1 #C13758 #9DC137 #37C1A0
square
#5B37C1 #C13758 #9DC137 #37C1A0
split-complementary
#5B37C1 #C1A037 #58C137
monochromatic
#2E1C62 #452991 #5B37C1 #8063D2 #A792E0

Accessibility & contrast

On white

7.60
#5B37C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B37C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37C1
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37C1#FFFFFF#000000##FFFFFF
##5B37C11.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C5
Deuteranopia (green-blind)
#0050BE
Tritanopia (blue-blind)
#335C78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b37c1;
/* rgb */ color: rgb(91, 55, 193);
/* oklch */ color: oklch(46.7% 0.201 287.9);
Tailwind
colors: {
  custom: {
    50: '#9371d5',
    500: '#5b37c1',
    950: '#000000',
  },
}
SCSS
$custom: #5b37c1;
$custom-light: #9371d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37c1",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 193
  },
  "hsl": {
    "h": 255.652,
    "s": 55.645,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46673,
    "c": 0.20138,
    "h": 287.9
  },
  "luminance": 0.08807
}

Semantic roles & 50–950 ramp

primary
#5B37C1
secondary
#BACB89
accent
#DF49B8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B37C1

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

Preview Lab → · Contrast checker → · Palette generator →

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